Order instruments by name
This commit is contained in:
parent
b0aed1ca74
commit
79cd70cbd8
|
|
@ -64,4 +64,4 @@ class InstrumentQuery(object):
|
||||||
return BasicKnowledge.objects.all().live()
|
return BasicKnowledge.objects.all().live()
|
||||||
|
|
||||||
def resolve_instrument_types(self, info, **kwargs):
|
def resolve_instrument_types(self, info, **kwargs):
|
||||||
return InstrumentType.objects.filter(instruments__isnull=False).distinct()
|
return InstrumentType.objects.filter(instruments__isnull=False).order_by('name').distinct()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue