Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Merge requests
!65
Resolve "Club Parent"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Club Parent"
parent-club
into
master
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Benjamin Graillot
requested to merge
parent-club
into
master
5 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
Closes
#42 (closed)
Edited
5 years ago
by
Pierre-antoine Comby
👍
0
👎
0
Merge request reports
Viewing commit
59cd166b
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
59cd166b
[member] tabs --> spaces
· 59cd166b
Benjamin Graillot
authored
5 years ago
apps/member/models.py
+
1
−
1
Options
@@ -169,7 +169,7 @@ class Membership(models.Model):
def
save
(
self
,
*
args
,
**
kwargs
):
if
self
.
club
.
parent_club
is
not
None
:
if
not
Membership
.
objects
.
filter
(
user
=
self
.
user
,
club
=
self
.
club
.
parent_club
):
raise
ValidationError
(
_
(
'
User is not a member of the parent club
'
))
raise
ValidationError
(
_
(
'
User is not a member of the parent club
'
))
super
().
save
(
*
args
,
**
kwargs
)
class
Meta
:
Loading