from django.contrib import admin
from .invitation import Invitation
from .membership import Membership
from .organization import Organization
[docs]@admin.register(Membership)
class MembershipAdmin(admin.ModelAdmin):
list_display = (
"user",
"organization",
"is_owner",
"created_at",
)
list_filter = (
"organization",
"is_owner",
)
[docs]@admin.register(Organization)
class OrganizationAdmin(admin.ModelAdmin):
list_display = ("name", "owner", "members_count", "created_at")
[docs]@admin.register(Invitation)
class InvitationAdmin(admin.ModelAdmin):
list_display = (
"status",
"user",
"organization",
"created_at",
)
list_filter = (
"status",
"organization",
)