mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-08-18 18:48:29 +02:00
fix for the issue #145
This commit is contained in:
@@ -166,6 +166,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
|
||||
due_date = forms.DateTimeField(
|
||||
widget=forms.TextInput(attrs={'class': 'form-control'}),
|
||||
required=False,
|
||||
input_formats=['%d/%m/%Y', '%m/%d/%Y', "%d.%m.%Y", ],
|
||||
label=_('Due on'),
|
||||
)
|
||||
|
||||
@@ -287,6 +288,7 @@ class TicketForm(AbstractTicketForm):
|
||||
self.fields['assigned_to'].choices = [('', '--------')] + [(u.id, u.get_username()) for u in assignable_users]
|
||||
self._add_form_custom_fields()
|
||||
|
||||
|
||||
def save(self, user=None):
|
||||
"""
|
||||
Writes and returns a Ticket() object
|
||||
|
Reference in New Issue
Block a user