diff --git a/sophon/core/admin.py b/sophon/core/admin.py index 1be7790..a7843f4 100644 --- a/sophon/core/admin.py +++ b/sophon/core/admin.py @@ -2,16 +2,22 @@ from django.contrib import admin from . import models +class CoreAdmin(admin.ModelAdmin): + """ + :class:`django.contrib.admin.ModelAdmin` class from which all other admin classes inherit. + """ + + @admin.register(models.Project) -class ProjectAdmin(admin.ModelAdmin): +class ProjectAdmin(CoreAdmin): pass @admin.register(models.DataSource) -class DataSourceAdmin(admin.ModelAdmin): +class DataSourceAdmin(CoreAdmin): pass @admin.register(models.DataFlow) -class DataFlowAdmin(admin.ModelAdmin): +class DataFlowAdmin(CoreAdmin): pass