Project

General

Profile

« Previous | Next » 

Revision 861220e2

Added by Mikaël Ates almost 9 years ago

personnes: don't filter worker per service in access management (fixes #5667).

View differences:

calebasse/personnes/forms.py
29 29
    def __init__(self, service=None, *args, **kwargs):
30 30
        self.service = service
31 31
        super(UserForm, self).__init__(*args, **kwargs)
32
        self.fields['worker'].queryset = Worker.objects.for_service(service)
33 32
        self.fields['username'].label = _('Identifiant')
34 33
        if self.instance:
35 34
            try:

Also available in: Unified diff