1
0
Fork 0

Add filter on TLE admin

pull/347/head
Nikos Roussos 2017-05-19 22:50:20 +03:00
parent bafd7f86a2
commit 56c54db255
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class SatelliteAdmin(admin.ModelAdmin):
@admin.register(Tle)
class TleAdmin(admin.ModelAdmin):
list_display = ('tle0', 'tle1', 'updated_date')
list_filter = ('tle0', )
def updated_date(self, obj):
return obj.updated.strftime('%d.%m.%Y, %H:%M')