Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretix public registrations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Monitor
Service Desk
Analyze
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
KIF
Pretix public registrations
Commits
7fc8c242
Commit
7fc8c242
authored
5 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Don't select/show canceled OrderPositions
This assumes OrderPositions in canceled Orders are also marked as canceled.
parent
14cb721a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pretix_public_registrations/signals.py
+1
-1
1 addition, 1 deletion
pretix_public_registrations/signals.py
with
1 addition
and
1 deletion
pretix_public_registrations/signals.py
+
1
−
1
View file @
7fc8c242
...
@@ -39,7 +39,7 @@ def add_public_registrations_table(sender, **kwargs):
...
@@ -39,7 +39,7 @@ def add_public_registrations_table(sender, **kwargs):
if
cached
is
None
:
if
cached
is
None
:
cached
=
""
cached
=
""
headers
=
[
""
,
"
Name
"
]
headers
=
[
""
,
"
Name
"
]
order_positions
=
OrderPosition
.
all
.
filter
(
order__event
=
sender
)
order_positions
=
OrderPosition
.
objects
.
filter
(
order__event
=
sender
)
public_order_positions
=
[
public_order_positions
=
[
op
for
op
in
order_positions
op
for
op
in
order_positions
if
op
.
meta_info_data
.
get
(
'
question_form_data
'
,
{}).
get
(
'
public_registration
'
)
==
"
True
"
if
op
.
meta_info_data
.
get
(
'
question_form_data
'
,
{}).
get
(
'
public_registration
'
)
==
"
True
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment