mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
Update admin code to recent model field renames
This commit is contained in:
@@ -48,7 +48,7 @@ class TagAdmin(admin.ModelAdmin):
|
|||||||
# list_display = ('name', 'description', 'active')
|
# list_display = ('name', 'description', 'active')
|
||||||
# not currently on model, so disabling for now.
|
# not currently on model, so disabling for now.
|
||||||
# filter_horizontal = ('tags',)
|
# filter_horizontal = ('tags',)
|
||||||
|
|
||||||
class HostAdmin(admin.ModelAdmin):
|
class HostAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
fields = ('name', 'inventory', 'description', 'active', 'tags',
|
fields = ('name', 'inventory', 'description', 'active', 'tags',
|
||||||
@@ -76,7 +76,7 @@ class CredentialAdmin(admin.ModelAdmin):
|
|||||||
class TeamAdmin(admin.ModelAdmin):
|
class TeamAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
list_display = ('name', 'description', 'active')
|
list_display = ('name', 'description', 'active')
|
||||||
filter_horizontal = ('projects', 'users', 'organization', 'tags')
|
filter_horizontal = ('projects', 'users', 'organizations', 'tags')
|
||||||
|
|
||||||
class ProjectAdmin(admin.ModelAdmin):
|
class ProjectAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user