order files by -added
This commit is contained in:
parent
29db08cccb
commit
628d5d0520
|
@ -105,7 +105,7 @@ class File(models.Model):
|
||||||
fts_fields = ['title', 'description']
|
fts_fields = ['title', 'description']
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['title']
|
ordering = ['-added']
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def filter_category(kls, category_id, qset):
|
def filter_category(kls, category_id, qset):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user