projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339559b
)
Allow editing of contributor email addresses
author
Magnus Hagander
<magnus@hagander.net>
Mon, 24 Aug 2015 14:35:51 +0000
(16:35 +0200)
committer
Magnus 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
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/account/forms.py
b/pgweb/account/forms.py
index 592981e9eb2329ffc93a30e17edb998a1a31ec57..5dfb8d9184c5250d2d0b3706e03a7771ddcffcdb 100644
(file)
--- a/
pgweb/account/forms.py
+++ b/
pgweb/account/forms.py
@@
-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()