
class DeviceTokenAdmin(admin.ModelAdmin):
    list_display = ('id', 'device_token', 'uuid', 'user')
    list_display_links = ('id', 'device_token', 'uuid', 'user')


admin.site.register(DeviceToken, DeviceTokenAdmin)


class CertFileAdmin(admin.ModelAdmin):
    readonly_fields = ('filename', 'target_mode', 'is_use', 'expire_date', 'upload_date')
    list_display = ('id', 'filename', 'target_mode', 'is_use', 'expire_date', 'upload_date')