Actually use the boolean flag.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-15 11:48:24 +02:00
parent 93d6525b29
commit c02a80553f
1 changed files with 3 additions and 0 deletions

View File

@ -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))