mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-08 12:54:23 +00:00
pyi2phosts/postkey/admin.py: order by descending
This commit is contained in:
parent
d1366aea50
commit
6200a466ff
@ -14,7 +14,7 @@ class i2phostAdmin(admin.ModelAdmin):
|
|||||||
list_display_links = ['name']
|
list_display_links = ['name']
|
||||||
list_filter = ('activated', 'external', 'approved')
|
list_filter = ('activated', 'external', 'approved')
|
||||||
search_fields = ['name']
|
search_fields = ['name']
|
||||||
ordering = ['date_added']
|
ordering = ['-date_added']
|
||||||
|
|
||||||
class PendingAdmin(i2phostAdmin):
|
class PendingAdmin(i2phostAdmin):
|
||||||
def queryset(self, request):
|
def queryset(self, request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user