~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlprofile/forms.py

  • Committer: Holger Rapp
  • Date: 2012-09-01 16:11:57 UTC
  • mfrom: (325.1.23 development)
  • Revision ID: sirver@gmx.de-20120901161157-nm7xupfhd2jlpypg
Merged Shevonars amazing work!

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
import re
14
14
 
15
15
class EditProfileForm(forms.ModelForm):
16
 
    delete_avatar = forms.BooleanField(initial=False,required=False)
17
16
    email = forms.EmailField(required=True)
18
17
 
19
18
    class Meta:
20
19
        model = Profile
21
 
        fields = ['site', 'jabber', 'icq', 'msn', 'aim', 'yahoo',
22
 
                  'location', 'signature', 'time_zone', "time_display",
23
 
                  'avatar', 'delete_avatar', 'show_signatures', "email",
24
 
                  ]
 
20
        fields = ['avatar', 'site', 'location', 'jabber', 'icq', 'msn',
 
21
                  'aim', 'yahoo', 'signature', 'email', 'show_signatures',
 
22
                  'time_zone', 'time_display', ]
25
23
 
26
24
 
27
25
    def __init__(self, *args, **kwargs):