Commits

glassresistor  committed 5e87cfd

Fixed ticket to tickets since related name

  • Participants
  • Parent commits e9d0b4c

Comments (0)

Files changed (1)

File eventbrite/utils.py

 
 
 def update_contacts():
-    events = Event.objects.annotate(count=Count('ticket')).\
+    events = Event.objects.annotate(count=Count('tickets')).\
     filter(
-        count__gt=0, ticket__quantity_sold__gt=0
+        count__gt=0, tickets__quantity_sold__gt=0
     )
     for event in events:
         attendees = api.call(