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
e3ad4cc7
Commit
e3ad4cc7
authored
Jan 28, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix search bug
parent
6a0a6120
Pipeline
#1732
passed with stage
in 1 minute 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
models.py
members/models.py
+1
-0
No files found.
members/models.py
View file @
e3ad4cc7
...
@@ -729,6 +729,7 @@ class CagetteMember(models.Model):
...
@@ -729,6 +729,7 @@ 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
([
'is_member'
,
'='
,
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