Order instruments
This commit is contained in:
parent
b9a8b3ff38
commit
48e2a8a428
|
|
@ -61,7 +61,7 @@ class InstrumentQuery(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def resolve_instruments(self, info, **kwargs):
|
def resolve_instruments(self, info, **kwargs):
|
||||||
return BasicKnowledge.objects.all().live()
|
return BasicKnowledge.objects.all().order_by('title').live()
|
||||||
|
|
||||||
def resolve_instrument_types(self, info, **kwargs):
|
def resolve_instrument_types(self, info, **kwargs):
|
||||||
return InstrumentType.objects.filter(instruments__isnull=False).order_by('name').distinct()
|
return InstrumentType.objects.filter(instruments__isnull=False).order_by('name').distinct()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue