mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-18 11:30:37 -06:00
23 lines
396 B
Python
23 lines
396 B
Python
from django.contrib import admin
|
|
|
|
from .models import Project, ProjectMembership
|
|
|
|
|
|
@admin.register(Project)
|
|
class ProjectAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
'name',
|
|
'dsn',
|
|
]
|
|
readonly_fields = [
|
|
'dsn',
|
|
]
|
|
|
|
|
|
@admin.register(ProjectMembership)
|
|
class ProjectMembershipAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
'project',
|
|
'user',
|
|
]
|