mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix the EVEAccount admin view not to spam with useless selection boxes (character)
This commit is contained in:
@@ -15,10 +15,9 @@ account_api_update.short_description = "Update account from the EVE API"
|
|||||||
class EVEAccountAdmin(admin.ModelAdmin):
|
class EVEAccountAdmin(admin.ModelAdmin):
|
||||||
list_display = ('id', 'user', 'api_keytype', 'api_status', 'api_last_updated')
|
list_display = ('id', 'user', 'api_keytype', 'api_status', 'api_last_updated')
|
||||||
search_fields = ['id', 'user__username']
|
search_fields = ['id', 'user__username']
|
||||||
readonly_fields = ('api_keytype', 'api_user_id', 'api_key', 'api_status')
|
readonly_fields = ('api_keytype', 'api_user_id', 'api_key', 'api_status', 'characters', 'api_last_updated')
|
||||||
filter_horizontal = ('characters',)
|
filter_horizontal = ('characters',)
|
||||||
|
|
||||||
|
|
||||||
actions = [account_api_update]
|
actions = [account_api_update]
|
||||||
|
|
||||||
admin.site.register(EVEAccount, EVEAccountAdmin)
|
admin.site.register(EVEAccount, EVEAccountAdmin)
|
||||||
|
|||||||
Reference in New Issue
Block a user