Commits

Ben Bangert  committed 6ece117

Set displayname properly

  • Participants
  • Parent commits d960ef9

Comments (0)

Files changed (1)

File kai/controllers/snippets.py

         
         if hasattr(self, 'form_result'):
             snippet = Snippet(**self.form_result)
-            snippet.human_id = 1
-            snippet.username = 'John Doe'
+            snippet.human_id = c.user.id
+            snippet.displayname = c.user.displayname
             
             ## generate the slug
             slug = snippet.title.replace(" ", "_")