* Allow priority selection on submission

* Display coloured background on new Priority column in lists
* Allow sorting by priority in ticket list
This commit is contained in:
Ross Poulton
2008-01-10 05:06:47 +00:00
parent 8aae8564ba
commit ff7f718caf
6 changed files with 50 additions and 10 deletions

View File

@ -47,6 +47,11 @@ class TicketForm(forms.Form):
assigned_to = forms.ChoiceField(choices=(), required=False,
label=u'Case owner')
priority = forms.ChoiceField(choices=Ticket.PRIORITY_CHOICES,
required=False,
initial='3',
label=u'Priority')
def save(self, user):
"""
@ -60,6 +65,7 @@ class TicketForm(forms.Form):
status = Ticket.OPEN_STATUS,
queue = q,
description = self.cleaned_data['body'],
priority = self.cleaned_data['priority'],
)
if self.cleaned_data['assigned_to']:
try: