Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thomasDOTwtf
hub
Commits
2be42940
Commit
2be42940
authored
Dec 26, 2020
by
yourcoke
Browse files
Options
Downloads
Patches
Plain Diff
UniqueTogether for EventParticipants
parent
75d3d626
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/models/events.py
+3
-0
3 additions, 0 deletions
src/core/models/events.py
with
3 additions
and
0 deletions
src/core/models/events.py
+
3
−
0
View file @
2be42940
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment