]> git.parisson.com Git - telemeta.git/commitdiff
fix comment place
authoryomguy <yomguy@parisson.com>
Thu, 4 Oct 2012 14:41:49 +0000 (16:41 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 4 Oct 2012 14:41:49 +0000 (16:41 +0200)
telemeta/forms/media.py

index e174250678017cb996e5446f33e9ec0367c03761..893c40ed3730c7d4f16835cc07ced00c2a618a9e 100644 (file)
@@ -77,6 +77,10 @@ class MediaItemForm(ModelForm):
     def clean_code(self):
         return self.cleaned_data['code'] or None
 
+    def __init__(self,*args,**kwargs):
+        super(MediaItemForm, self).__init__(*args, **kwargs)
+        self.fields.insert(18, 'comment', self.fields['comment'])
+
 class MediaItemRelatedForm(ModelForm):
     class Meta:
         model = MediaItemRelated