From f766926dcc9274f81eb724e811415caac05e1eaa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 8 Apr 2021 14:22:30 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Make=20ModelAdmin=20classes=20for?= =?UTF-8?q?=20every=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sophon/core/admin.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/sophon/core/admin.py b/sophon/core/admin.py index 0fbc148..1be7790 100644 --- a/sophon/core/admin.py +++ b/sophon/core/admin.py @@ -2,6 +2,16 @@ from django.contrib import admin from . import models -admin.site.register(models.Project) -admin.site.register(models.DataSource) -admin.site.register(models.DataFlow) +@admin.register(models.Project) +class ProjectAdmin(admin.ModelAdmin): + pass + + +@admin.register(models.DataSource) +class DataSourceAdmin(admin.ModelAdmin): + pass + + +@admin.register(models.DataFlow) +class DataFlowAdmin(admin.ModelAdmin): + pass