mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 14:22:16 +00:00
Move action to correct AdminModel
This commit is contained in:
@@ -32,12 +32,13 @@ admin.site.register(EVEAccount, EVEAccountAdmin)
|
|||||||
class EVEPlayerCharacterAdmin(admin.ModelAdmin):
|
class EVEPlayerCharacterAdmin(admin.ModelAdmin):
|
||||||
list_display = ('id', 'name', 'corporation')
|
list_display = ('id', 'name', 'corporation')
|
||||||
search_fields = ['id', 'name']
|
search_fields = ['id', 'name']
|
||||||
|
actions = [char_api_update]
|
||||||
|
|
||||||
admin.site.register(EVEPlayerCharacter, EVEPlayerCharacterAdmin)
|
admin.site.register(EVEPlayerCharacter, EVEPlayerCharacterAdmin)
|
||||||
|
|
||||||
class EVEPlayerCharacterRoleAdmin(admin.ModelAdmin):
|
class EVEPlayerCharacterRoleAdmin(admin.ModelAdmin):
|
||||||
list_display = ('id', 'roleid', 'name')
|
list_display = ('id', 'roleid', 'name')
|
||||||
search_fields = ['roleid', 'name']
|
search_fields = ['roleid', 'name']
|
||||||
actions = [char_api_update]
|
|
||||||
|
|
||||||
admin.site.register(EVEPlayerCharacterRole, EVEPlayerCharacterRoleAdmin)
|
admin.site.register(EVEPlayerCharacterRole, EVEPlayerCharacterRoleAdmin)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user