diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-12 23:49:37 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-26 19:19:48 +0100 |
commit | 8efcd4055804f5dba99cced70fd4fb7876a88e5e (patch) | |
tree | 3ab6a0f8d0301748307e54476e30f5b09101bb93 /mediagoblin/user_pages/views.py | |
parent | ec97c937b7e3374d40624478f805694b56bc0317 (diff) | |
download | mediagoblin-8efcd4055804f5dba99cced70fd4fb7876a88e5e.tar.lz mediagoblin-8efcd4055804f5dba99cced70fd4fb7876a88e5e.tar.xz mediagoblin-8efcd4055804f5dba99cced70fd4fb7876a88e5e.zip |
Dot-Notation: MediaComment and some random places
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r-- | mediagoblin/user_pages/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 05d07b1b..530dea64 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -142,11 +142,11 @@ def media_post_comment(request, media): assert request.method == 'POST' comment = request.db.MediaComment() - comment['media_entry'] = media._id - comment['author'] = request.user._id - comment['content'] = unicode(request.POST['comment_content']) + comment.media_entry = media.id + comment.author = request.user.id + comment.content = unicode(request.POST['comment_content']) - if not comment['content'].strip(): + if not comment.content.strip(): messages.add_message( request, messages.ERROR, |