Sort WGs in the community rules drop-down list by acronym rather than WG name.
- Legacy-Id: 4586
This commit is contained in:
parent
e61e4f0893
commit
3ade3e443f
|
@ -34,7 +34,7 @@ class WgAsociatedRule(RuleManager):
|
||||||
return Document.objects.filter(type='draft', states__slug='active').filter(group__acronym=self.value).distinct()
|
return Document.objects.filter(type='draft', states__slug='active').filter(group__acronym=self.value).distinct()
|
||||||
|
|
||||||
def options(self):
|
def options(self):
|
||||||
return [(i.acronym, "%s — %s"%(i.acronym, i.name)) for i in Group.objects.filter(type='wg', state='active').distinct().order_by('name')]
|
return [(i.acronym, "%s — %s"%(i.acronym, i.name)) for i in Group.objects.filter(type='wg', state='active').distinct().order_by('acronym')]
|
||||||
|
|
||||||
def show_value(self):
|
def show_value(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue