Fix the EVEAccount admin view not to spam with useless selection boxes (character)

This commit is contained in:
2011-01-25 15:54:20 +00:00
parent 88f8c01f19
commit 806abd2ff1

View File

@@ -15,10 +15,9 @@ 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', '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',)
actions = [account_api_update]
admin.site.register(EVEAccount, EVEAccountAdmin)