diff options
author | Magnus Hagander | 2016-01-07 12:47:56 +0000 |
---|---|---|
committer | Magnus Hagander | 2016-01-07 14:19:56 +0000 |
commit | e507fbb36acccc9a00d4bf3dfb2fade4f2b23f12 (patch) | |
tree | b902224f7947468b6a3dbb7923f17fc536b8e8f0 /postgresqleu/elections/admin.py | |
parent | 9944ba5e305ff92c8652371c069f4b922f2857ea (diff) |
Add required excludes to forms
Diffstat (limited to 'postgresqleu/elections/admin.py')
-rw-r--r-- | postgresqleu/elections/admin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/postgresqleu/elections/admin.py b/postgresqleu/elections/admin.py index 0d2267e7..f9b0c328 100644 --- a/postgresqleu/elections/admin.py +++ b/postgresqleu/elections/admin.py @@ -6,6 +6,7 @@ from models import Vote, Election, Candidate class VoteAdminForm(ModelForm): class Meta: model = Vote + exclude = [] def clean(self): raise ValidationError("You really shouldn't edit votes! If you *really* need to fix something broken, do it in the db") |