Project

General

Profile

« Previous | Next » 

Revision 01e321c7

Added by Mikaël Ates almost 10 years ago

personnes: allow userworker removing of an access.

View differences:

calebasse/personnes/forms.py
80 80
                else:
81 81
                    UserWorker.objects.create(user=instance, worker=worker)
82 82
            self.save_m2m = save_m2m
83
        else:
84
            try:
85
                instance.userworker.delete()
86
            except UserWorker.DoesNotExist:
87
                pass
83 88
        if instance.pk:
84 89
            instance.groups = self.cleaned_data['groups']
85 90
        if commit:

Also available in: Unified diff