Skip to content
Snippets Groups Projects
Commit 2be42940 authored by yourcoke's avatar yourcoke
Browse files

UniqueTogether for EventParticipants

parent 75d3d626
No related branches found
No related tags found
No related merge requests found
...@@ -331,6 +331,9 @@ class EventParticipant(models.Model): ...@@ -331,6 +331,9 @@ class EventParticipant(models.Model):
help_text=_('EventParticipant__personal_comment__help'), help_text=_('EventParticipant__personal_comment__help'),
verbose_name=_('EventParticipant__personal_comment')) verbose_name=_('EventParticipant__personal_comment'))
class Meta:
unique_together = ['participant', 'event', 'role']
def clean(self, *args, **kwargs): def clean(self, *args, **kwargs):
# verify that the participant is a member of the event's conference # verify that the participant is a member of the event's conference
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment