#112 Order enhancement

* enhances ordering for action details and biotope details
pull/115/head
mpeltriaux 3 years ago
parent a160f3fe6c
commit ed27d8d589

@ -188,7 +188,7 @@ class CompensationActionDetailCodeAutocomplete(KonovaCodeAutocomplete):
def order_by(self, qs): def order_by(self, qs):
return qs.order_by( return qs.order_by(
"parent__long_name" "long_name"
) )
@ -281,7 +281,7 @@ class BiotopeExtraCodeAutocomplete(KonovaCodeAutocomplete):
qs (QuerySet): The ordered queryset qs (QuerySet): The ordered queryset
""" """
return qs.order_by( return qs.order_by(
"parent__long_name", "long_name",
) )
def get_result_label(self, result): def get_result_label(self, result):

Loading…
Cancel
Save