1
0
Fork 0

Remove Satellite updated field from admin

merge-requests/223/head
Nikos Roussos 2016-03-26 16:51:02 +02:00
parent 01a2c9c103
commit df6896b91e
1 changed files with 1 additions and 4 deletions

View File

@ -32,12 +32,9 @@ class StationAdmin(admin.ModelAdmin):
@admin.register(Satellite)
class SatelliteAdmin(admin.ModelAdmin):
list_display = ('name', 'norad_cat_id', 'updated_date')
list_display = ('name', 'norad_cat_id')
readonly_fields = ('name', 'names', 'image')
def updated_date(self, obj):
return obj.updated.strftime('%d.%m.%Y, %H:%M')
@admin.register(Tle)
class TleAdmin(admin.ModelAdmin):