From c02a80553fe7f44764f4445c9417fe64cea374c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Wed, 15 Aug 2018 11:48:24 +0200 Subject: [PATCH] Actually use the boolean flag. --- src/sponsors/management/commands/generate_sponsor_tickets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sponsors/management/commands/generate_sponsor_tickets.py b/src/sponsors/management/commands/generate_sponsor_tickets.py index 4511250c..cecbb601 100644 --- a/src/sponsors/management/commands/generate_sponsor_tickets.py +++ b/src/sponsors/management/commands/generate_sponsor_tickets.py @@ -34,5 +34,8 @@ class Command(BaseCommand): ticket.save() ticket.generate_pdf() self.output("- {}_ticket_{}.pdf".format(ticket.shortname, ticket.pk)) + sponsor.tickets_generated = True + sponsor.save() else: self.output("{} is in tier {}, which has no tickets set.".format(sponsor, sponsor.tier)) +