remove elected users from an election.
This commit is contained in:
parent
2fdbad55f1
commit
4af19d091b
@ -68,6 +68,7 @@ class Assignment(models.Model, SlideMixin):
|
||||
"""
|
||||
if self.is_candidate(profile):
|
||||
self.profile.remove(profile)
|
||||
self.elected.remove(profile)
|
||||
else:
|
||||
raise NameError(_('%s is no candidate') % profile)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user