feat(admin): remove team management
not required as groups are teams and managed within the app interface. also, the permissions within admin do not match what the intent of the app provides. !1
This commit is contained in:
@ -28,26 +28,3 @@ class OrganizationAdmin(admin.ModelAdmin):
|
||||
|
||||
admin.site.register(Organization,OrganizationAdmin)
|
||||
|
||||
|
||||
class UserInline(admin.TabularInline):
|
||||
model = TeamUsers
|
||||
extra = 0
|
||||
|
||||
fk_name = 'team'
|
||||
|
||||
readonly_fields = ['created', 'modified']
|
||||
|
||||
|
||||
|
||||
class TeamAdmin(admin.ModelAdmin):
|
||||
fieldsets = [
|
||||
(None, {"fields": ["organization", 'name', "team_name", 'permissions']}),
|
||||
#("Date information", {"fields": ["slug"], "classes": ["collapse"]}),
|
||||
]
|
||||
inlines = [UserInline]
|
||||
list_display = ["team_name", "created", "modified"]
|
||||
list_filter = ["created"]
|
||||
search_fields = ["name"]
|
||||
readonly_fields = ['organization', 'name']
|
||||
|
||||
admin.site.register(Team,TeamAdmin)
|
||||
|
Reference in New Issue
Block a user