Commit c578fb88 authored by MariaV's avatar MariaV
Browse files

Merge branch 'issue_sort' into 'master'

Changed sort order on CreateIssue form

See merge request !92
parents e792db6c 2f522c3a
...@@ -177,6 +177,10 @@ class CreateIssueForm(ModelForm): ...@@ -177,6 +177,10 @@ class CreateIssueForm(ModelForm):
GitLab Flavored Markdown (GFM)</a> on this form.""") GitLab Flavored Markdown (GFM)</a> on this form.""")
} }
def __init__(self, *args, **kwargs):
super(CreateIssueForm, self).__init__(*args, **kwargs)
self.fields['linked_project'].queryset = self.fields['linked_project'].queryset.order_by('name_with_namespace')
# The following forms and formsets are used to created the 'moderator' view # The following forms and formsets are used to created the 'moderator' view
class PendingIssueForm(forms.ModelForm): class PendingIssueForm(forms.ModelForm):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment