#112 Order enhancement
* enhances ordering for action details and biotope details
This commit is contained in:
parent
ec69556b1c
commit
46ff1d2bc5
@ -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…
Reference in New Issue
Block a user