From 1c28a89dfae84d5412a34548d826bd8c6d20d029 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Apr 2021 18:30:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Register=20models=20in=20the=20a?= =?UTF-8?q?dmin=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sophon/core/admin.py | 5 ++++- sophon/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sophon/core/admin.py b/sophon/core/admin.py index 8c38f3f..789ceca 100644 --- a/sophon/core/admin.py +++ b/sophon/core/admin.py @@ -1,3 +1,6 @@ from django.contrib import admin +from . import models -# Register your models here. + +admin.site.register(models.Project) +admin.site.register(models.DataSource) diff --git a/sophon/settings.py b/sophon/settings.py index c7213eb..822aa43 100644 --- a/sophon/settings.py +++ b/sophon/settings.py @@ -39,7 +39,7 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', - 'sophon.core', + 'sophon.core', # FIXME: Is .apps.CoreConfig not needed? ] MIDDLEWARE = [