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:
2024-05-15 11:52:53 +09:30
parent 736d3930df
commit 4b214d0b8c

View File

@ -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)