Skip to content

Instantly share code, notes, and snippets.

@beniwohli
Created January 21, 2010 16:37
Show Gist options
  • Save beniwohli/282928 to your computer and use it in GitHub Desktop.
Save beniwohli/282928 to your computer and use it in GitHub Desktop.
diff --git a/threadedcomments/forms.py b/threadedcomments/forms.py
index 4f64699..cdcd4c8 100644
--- a/threadedcomments/forms.py
+++ b/threadedcomments/forms.py
@@ -16,6 +16,8 @@ class ThreadedCommentForm(CommentForm):
initial.update({'parent': self.parent})
super(ThreadedCommentForm, self).__init__(target_object, data=data,
initial=initial)
+ self.fields.keyOrder.remove('title')
+ self.fields.keyOrder.insert(self.fields.keyOrder.index('comment'), 'title')
def get_comment_model(self):
return ThreadedComment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment