mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Change some EVEAccount fields to be readonly
This commit is contained in:
@@ -15,6 +15,7 @@ account_api_update.short_description = "Update account from the EVE API"
|
||||
class EVEAccountAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'user', 'api_keytype', 'api_status', 'api_last_updated')
|
||||
search_fields = ['id']
|
||||
readonly_fields = ('api_keytype', 'api_user_id', 'api_key', 'api_status')
|
||||
|
||||
actions = [account_api_update]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user