Changes between Initial Version and Version 2 of Ticket #29786
- Timestamp:
- Sep 23, 2018, 3:35:53 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29786 – Description
initial v2 10 10 def get_number_of_registered_tickets(): 11 11 return EventRegistration.objects.filter(event__exact=self).aggregate(total=Coalesce(Sum('number_tickets'), 0))['total'] 12 12 13 @transaction.atomic 13 14 def reserve_tickets(self, number_tickets): 14 15 Event.objects.filter(id=self.id).select_for_update()