Skip to content
Snippets Groups Projects
Commit 7fc8c242 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

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
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment