remove elected users from an election.

This commit is contained in:
Oskar Hahn 2012-06-28 20:12:49 +02:00
parent 2fdbad55f1
commit 4af19d091b

View File

@ -68,6 +68,7 @@ class Assignment(models.Model, SlideMixin):
""" """
if self.is_candidate(profile): if self.is_candidate(profile):
self.profile.remove(profile) self.profile.remove(profile)
self.elected.remove(profile)
else: else:
raise NameError(_('%s is no candidate') % profile) raise NameError(_('%s is no candidate') % profile)