Project

General

Profile

« Previous | Next » 

Revision 76974b6f

Added by Benjamin Dauvergne almost 12 years ago

agenda/actes/dossiers: move Occurence fields into Event, add recurring events support

View differences:

calebasse/actes/views.py
14 14
            service=service)
15 15

  
16 16
class ActListingView(ListView):
17
    model=models.EventAct
17
    model=models.Act
18 18
    template_name='actes/act_listing.html'
19 19

  
20 20
    def get_queryset(self):
21 21
        qs = super(ActListingView, self).get_queryset()
22 22
        self.get_search_form()
23
        qs = qs.filter(services=self.service)
23
        qs = qs.filter(patient__service=self.service)
24 24
        qs = qs.filter(date=self.date)
25 25
        if self.request.method == 'POST' and self.search_form.is_valid():
26 26
            cd = self.search_form.cleaned_data

Also available in: Unified diff