Skip to content

Commit

Permalink
Fixed a bug in admin.py where notifying of wait list didn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
melwil committed Feb 19, 2015
1 parent 44dc1a7 commit e3adaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/events/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def save_model(self, request, obj, form, change):
if diff_capacity > old_waitlist_size:
diff_capacity = old_waitlist_size
# Using old_event because max_capacity has already been changed in obj
old_event.notify_waiting_list(host=request.META['HTTP_HOST'], extra_capacity=diff_capacity)
old_event.attendance_event.notify_waiting_list(host=request.META['HTTP_HOST'], extra_capacity=diff_capacity)
obj.save()

def save_formset(self, request, form, formset, change):
Expand Down

0 comments on commit e3adaae

Please sign in to comment.