~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/forms.py

  • Committer: franku
  • Date: 2018-04-07 09:48:02 UTC
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: somal@arcor.de-20180407094802-rh3juumycm31p94w
run through 1.9 release notes

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        self.ip = kwargs.pop('ip', None)
29
29
        super(AddPostForm, self).__init__(*args, **kwargs)
30
30
 
31
 
        # TODO(Franku): This doesn't work anymore with django 1.8 Use 'field_order'
32
 
        # with django 1.9
33
 
        self.fields.keyOrder = ['name',
34
 
                                'body',
35
 
                                'markup',
36
 
                                'attachment']
37
 
 
38
31
        if self.topic:
39
32
            self.fields['name'].widget = forms.HiddenInput()
40
33
            self.fields['name'].required = False