mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-16 18:20:48 +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
|
model = IgnoreEmail
|
||||||
|
|
||||||
class TicketCCForm(forms.ModelForm):
|
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:
|
class Meta:
|
||||||
model = TicketCC
|
model = TicketCC
|
||||||
exclude = ('ticket',)
|
exclude = ('ticket',)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user