Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
bc2ada47
Verified
Commit
bc2ada47
authored
Aug 28, 2019
by
Sébastiaan Versteeg
Committed by
Sébastiaan Versteeg
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply suggestion to website/activemembers/models.py
parent
17dfd1b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
website/activemembers/models.py
website/activemembers/models.py
+4
-1
No files found.
website/activemembers/models.py
View file @
bc2ada47
...
@@ -284,7 +284,10 @@ class MemberGroupMembership(models.Model, metaclass=ModelTranslateMeta):
...
@@ -284,7 +284,10 @@ class MemberGroupMembership(models.Model, metaclass=ModelTranslateMeta):
@
property
@
property
def
latest_connected_membership
(
self
):
def
latest_connected_membership
(
self
):
"""Find the newest membership directly connected to the current one"""
"""
Find the newest membership directly connected to the current one
(thus the membership that started at the moment the current one ended)
"""
if
self
.
until
:
if
self
.
until
:
qs
=
MemberGroupMembership
.
objects
.
filter
(
qs
=
MemberGroupMembership
.
objects
.
filter
(
group
=
self
.
group
,
group
=
self
.
group
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment