Skip to content

Commit

Permalink
Add admin panel for multitenancy
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcikmat committed Mar 8, 2024
1 parent a032f68 commit 0cbeefd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/backend/apps/multitenancy/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# from django.contrib import admin
from django.contrib import admin

# Register your models here.
from . import models


@admin.register(models.Tenant)
class TenantAdmin(admin.ModelAdmin):
list_display = ("id", "name", "type")


@admin.register(models.TenantMembership)
class TenantMembershipAdmin(admin.ModelAdmin):
list_display = ("id", "role", "user", "invitee_email_address", "tenant", "is_accepted")

0 comments on commit 0cbeefd

Please sign in to comment.