order files alphabetically
This commit is contained in:
parent
99b037871b
commit
feed0cb63d
|
@ -103,6 +103,9 @@ class File(models.Model):
|
|||
|
||||
fts_fields = ['title', 'description']
|
||||
|
||||
class Meta:
|
||||
ordering = ['title']
|
||||
|
||||
@classmethod
|
||||
def filter_category(kls, category_id, qset):
|
||||
return qset.filter(categories=category_id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user