mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Added inventory to admin.
This commit is contained in:
@@ -5,5 +5,13 @@ from lib.main.models import *
|
||||
class OrganizationAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('name', 'description', 'active')
|
||||
filter_horizontal = ('users', 'admins', 'projects')
|
||||
|
||||
class InventoryAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('name', 'description', 'active')
|
||||
|
||||
# FIXME: Add the rest of the models...
|
||||
|
||||
admin.site.register(Organization, OrganizationAdmin)
|
||||
admin.site.register(Inventory, InventoryAdmin)
|
||||
|
||||
Reference in New Issue
Block a user