16 строки
396 B
Python
16 строки
396 B
Python
from django.contrib.admin import AdminSite
|
|
from django.contrib.auth.admin import UserAdmin
|
|
from django.contrib.auth.models import User
|
|
|
|
from .api.admin import MetricAdmin
|
|
from .api.models import Metric
|
|
|
|
|
|
class DVAdminSite(AdminSite):
|
|
site_header = 'Distribution Viewer administration'
|
|
|
|
|
|
admin_site = DVAdminSite()
|
|
admin_site.register(Metric, MetricAdmin)
|
|
admin_site.register(User, UserAdmin)
|