]> git.parisson.com Git - telemeta.git/commitdiff
cleanup
authoryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 15:37:56 +0000 (16:37 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 15:37:56 +0000 (16:37 +0100)
telemeta/web/base.py

index 2d2482028926e5514e8790fb02d082f651beb01d..2909bd8c63ed0b64c794e78493d0637c6fd92175 100644 (file)
@@ -702,8 +702,7 @@ class WebView(object):
             m.time = float(marker['time'])
             m.title = marker['title']
             m.description = marker['description']
-            author = User.objects.get(username=marker['author'])
-            m.author = author
+            m.author = User.objects.get(username=marker['author'])
             m.save()
         else:
             raise 'Error : Bad marker dictionnary'