Project

General

Profile

« Previous | Next » 

Revision 48a85f96

Added by Jérôme Schneider over 11 years ago

actes: suppport act update (fix #2092)

View differences:

calebasse/personnes/lookup.py
2 2
from ajax_select import LookupChannel
3 3
from models import Worker
4 4

  
5
class Worker(LookupChannel):
5
class WorkerLookup(LookupChannel):
6 6
    model = Worker
7 7
    search_field = 'display_name'
8 8

  
......
20 20
        text = obj.last_name.upper() + ' ' + obj.first_name
21 21
        return unicode(text)
22 22

  
23
class IntervenantLookup(WorkerLookup):
24
    model = Worker
25
    search_field = 'display_name'
26

  
27
    def get_query(self,q,request):
28
        qs = super(IntervenantLookup, self).get_query(q,request)
29
        return qs.filter(type__intervene=True)

Also available in: Unified diff