mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
sort list of users by username in helpdesk/tickets/X/cc/add/
This commit is contained in:
parent
8ed7debbdf
commit
2d302ceba6
@ -499,6 +499,10 @@ class EmailIgnoreForm(forms.ModelForm):
|
||||
model = IgnoreEmail
|
||||
|
||||
class TicketCCForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(TicketCCForm, self).__init__(*args, **kwargs)
|
||||
self.fields['user'].queryset = User.objects.filter(is_active=True).order_by('username')
|
||||
class Meta:
|
||||
model = TicketCC
|
||||
exclude = ('ticket',)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user