Chris Johnston has proposed merging lp:~chrisjohnston/loco-directory/652749
into lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
Related bugs:
#652749 On sign up page for an event it is not adding up attendees
https://bugs.launchpad.net/bugs/652749
--
https://code.launchpad.net/~chrisjohnston/loco-directory/652749/+merge/38457
Your team loco-directory-dev is requested to review the proposed merge of
lp:~chrisjohnston/loco-directory/652749 into lp:loco-directory.
=== modified file 'loco_directory/events/models.py'
--- loco_directory/events/models.py 2010-09-11 03:52:28 +0000
+++ loco_directory/events/models.py 2010-10-14 20:33:12 +0000
@@ -126,13 +126,13 @@
def total_attending(self):
total_attending_guests = queryset_sum('guests', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="sure"))
- total_attending_registered = queryset_count('attendee', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="sure"))
+ total_attending_registered = queryset_count('attendee_profile', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="sure"))
return total_attending_guests + total_attending_registered
def total_maybe_attending(self):
total_maybe_attending_guests = queryset_sum('guests', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="maybe"))
- total_maybe_attending_registered = queryset_count('attendee', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="maybe"))
+ total_maybe_attending_registered = queryset_count('attendee_profile', Attendee.objects.filter(team_event__id__exact=self.id).filter(promise="maybe"))
return total_maybe_attending_guests + total_maybe_attending_registered
#add manager
_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help : https://help.launchpad.net/ListHelp