← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 545548] Re: Add fields for total people attending an event

 

This bug is easily fixed  the code only needs a method in the TeamEvent
Class in the event models. I do not know how much can be changed in
models after the 0.2 release. but if not it can also be achieved in the
views and not have to migrate the database once this fix is in place.

method for the TeamEvent would look like:

 def total_attending(self):
        total_attending_guests = Attendee.objects.filter(event__id__exact=self.id).aggregate(total_coming=Sum('guests'))
        total_attending_registered = total_attending_registered = Attendee.objects.filter(event__id__exact=self.id).aggregate(total_coming=Count('attendee'))
        return  total_attending_guests['total_coming'] + total_attending_registered['total_coming']

I would need to know if I can feel free to add this in the modules or in
the views

** Changed in: loco-directory
     Assignee: (unassigned) => Efrain Valles (effie-jayx)

-- 
Add fields for total people attending an event
https://bugs.launchpad.net/bugs/545548
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.

Status in LoCo Directory: Triaged

Bug description:
>From a conversation on IRC, it is desired to have three new fields on the event detail page.

Total Confirmed Attending:
Total might be Attending:
Total Attendees:





References