Sorted the order of the menu items
This commit is contained in:
parent
4ffca36884
commit
07c6260bde
2 changed files with 7 additions and 7 deletions
|
|
@ -34,11 +34,11 @@ class Category(CommonInfo):
|
|||
|
||||
@property
|
||||
def active_children(self):
|
||||
return self.children.filter(active=True)
|
||||
return self.children.filter(active=True).order_by('name')
|
||||
|
||||
@property
|
||||
def active_samples(self):
|
||||
return self.samples.filter(active=True)
|
||||
return self.samples.filter(active=True).order_by('name')
|
||||
|
||||
|
||||
class Sample(CommonInfo):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue