Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
3522a711
Commit
3522a711
authored
Jan 31, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix is_associated_people who could not be found anymore after last change
parent
e3ad4cc7
Pipeline
#1734
passed with stage
in 1 minute 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
models.py
members/models.py
+2
-0
No files found.
members/models.py
View file @
3522a711
...
@@ -729,7 +729,9 @@ class CagetteMember(models.Model):
...
@@ -729,7 +729,9 @@ class CagetteMember(models.Model):
cond
=
[[
'barcode'
,
'='
,
str
(
key
)]]
cond
=
[[
'barcode'
,
'='
,
str
(
key
)]]
else
:
else
:
cond
=
[[
'name'
,
'ilike'
,
str
(
key
)]]
cond
=
[[
'name'
,
'ilike'
,
str
(
key
)]]
cond
.
append
(
'|'
)
cond
.
append
([
'is_member'
,
'='
,
True
])
cond
.
append
([
'is_member'
,
'='
,
True
])
cond
.
append
([
'is_associated_people'
,
'='
,
True
])
# cond.append(['cooperative_state', '!=', 'unsubscribed'])
# cond.append(['cooperative_state', '!=', 'unsubscribed'])
fields
=
CagetteMember
.
m_default_fields
fields
=
CagetteMember
.
m_default_fields
if
not
shift_id
is
None
:
if
not
shift_id
is
None
:
...
...
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