Skip to content
Snippets Groups Projects
Commit 7cfadfd4 authored by OndraRehounek's avatar OndraRehounek Committed by jan.bednarik
Browse files

district: People children pages ordering

parent 5f403fd9
No related branches found
No related tags found
2 merge requests!576Release,!570district: People children pages ordering & program points admin UX
......@@ -700,6 +700,7 @@ class DistrictPersonPage(
class Meta:
verbose_name = "Detail osoby"
ordering = ("title",)
def get_background_photo(self):
"""
......@@ -772,6 +773,10 @@ class DistrictPeoplePage(
class Meta:
verbose_name = "Lidé"
def get_children(self):
"""Přepisuji, aby byli seřazení podle title (jména) v nabídkách"""
return super().get_children().order_by("title")
class DistrictElectionBasePage(
ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin, Page
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment