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

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