Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PixieDust-LastMinuteSurpluss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Erick Gabriel T. Lopez
PixieDust-LastMinuteSurpluss
Commits
0d7cd116
Commit
0d7cd116
authored
Dec 06, 2022
by
Mikael Giannes M. Bernardino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filtered unsuccessful orderitems on customer views
parent
ab6bc4ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
views.cpython-310.pyc
pixie_dust/users/__pycache__/views.cpython-310.pyc
+0
-0
views.py
pixie_dust/users/views.py
+1
-1
No files found.
pixie_dust/users/__pycache__/views.cpython-310.pyc
View file @
0d7cd116
No preview for this file type
pixie_dust/users/views.py
View file @
0d7cd116
...
...
@@ -59,7 +59,7 @@ def customer_details(request, customer_id):
start_date
=
request
.
GET
.
get
(
'start-date'
,
'2000-01-01'
)
end_date
=
request
.
GET
.
get
(
'end-date'
,
'2100-01-01'
)
order_list
=
Order
.
objects
.
filter
(
customer_id__in
=
customer_list
,
order_date__range
=
[
start_date
,
end_date
])
order_item_list
=
OrderItem
.
objects
.
filter
(
order_no__in
=
order_list
)
order_item_list
=
OrderItem
.
objects
.
filter
(
order_no__in
=
order_list
,
is_successful
=
True
)
return
render
(
request
,
"users/customer_details.html"
,{
"customer"
:
customer
,
"order_list"
:
order_list
,
"order_item_list"
:
order_item_list
})
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