Allow editing of contributor email addresses
authorMagnus Hagander <magnus@hagander.net>
Mon, 24 Aug 2015 14:35:51 +0000 (16:35 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 24 Aug 2015 14:36:47 +0000 (16:36 +0200)
Since this is only used as a display field (same as company name)
etc, we allow the contributors to edit them just generating a standard
post-moderation message to the list.

pgweb/account/forms.py

index 592981e9eb2329ffc93a30e17edb998a1a31ec57..5dfb8d9184c5250d2d0b3706e03a7771ddcffcdb 100644 (file)
@@ -62,7 +62,7 @@ class UserForm(forms.ModelForm):
 class ContributorForm(forms.ModelForm):
        class Meta:
                model = Contributor
-               exclude = ('ctype', 'lastname', 'firstname', 'email', 'user', )
+               exclude = ('ctype', 'lastname', 'firstname', 'user', )
 
 class ChangeEmailForm(forms.Form):
        email = forms.EmailField()