From 1499a7909f91dc69b329b239dc97c8b7f13ce67a Mon Sep 17 00:00:00 2001
From: Marco Frailis <marco.frailis@inaf.it>
Date: Mon, 19 Oct 2020 02:02:54 +0200
Subject: [PATCH] Renaming euclid example folder, small update on model and
 settings

---
 django_example_euclid/{euclid => euclid_example}/__init__.py | 0
 django_example_euclid/{euclid => euclid_example}/settings.py | 2 +-
 django_example_euclid/{euclid => euclid_example}/urls.py     | 0
 django_example_euclid/{euclid => euclid_example}/wsgi.py     | 0
 django_example_euclid/imagedb/models.py                      | 4 ++--
 5 files changed, 3 insertions(+), 3 deletions(-)
 rename django_example_euclid/{euclid => euclid_example}/__init__.py (100%)
 rename django_example_euclid/{euclid => euclid_example}/settings.py (98%)
 rename django_example_euclid/{euclid => euclid_example}/urls.py (100%)
 rename django_example_euclid/{euclid => euclid_example}/wsgi.py (100%)

diff --git a/django_example_euclid/euclid/__init__.py b/django_example_euclid/euclid_example/__init__.py
similarity index 100%
rename from django_example_euclid/euclid/__init__.py
rename to django_example_euclid/euclid_example/__init__.py
diff --git a/django_example_euclid/euclid/settings.py b/django_example_euclid/euclid_example/settings.py
similarity index 98%
rename from django_example_euclid/euclid/settings.py
rename to django_example_euclid/euclid_example/settings.py
index 7481b46..b8194d5 100644
--- a/django_example_euclid/euclid/settings.py
+++ b/django_example_euclid/euclid_example/settings.py
@@ -38,7 +38,7 @@ INSTALLED_APPS = [
     'django.contrib.messages',
     'django.contrib.staticfiles',
     'django_extensions',
-    'imagedb',
+    'imagedb.apps.ImagedbConfig',
     'rest_framework',
     'url_filter',
 ]
diff --git a/django_example_euclid/euclid/urls.py b/django_example_euclid/euclid_example/urls.py
similarity index 100%
rename from django_example_euclid/euclid/urls.py
rename to django_example_euclid/euclid_example/urls.py
diff --git a/django_example_euclid/euclid/wsgi.py b/django_example_euclid/euclid_example/wsgi.py
similarity index 100%
rename from django_example_euclid/euclid/wsgi.py
rename to django_example_euclid/euclid_example/wsgi.py
diff --git a/django_example_euclid/imagedb/models.py b/django_example_euclid/imagedb/models.py
index 3c72de5..7bd48b6 100644
--- a/django_example_euclid/imagedb/models.py
+++ b/django_example_euclid/imagedb/models.py
@@ -200,12 +200,12 @@ class DataContainer(models.Model):
 
 class NispRawFrame(ImageSpaceFrame):
   filterWheelPosition = models.CharField(
-    max_length=10,
+    max_length=15,
     choices = [(d,d) for d in NISP_FILTER_WHEEL]
   )
 
   grismWheelPosition = models.CharField(
-    max_length=10,
+    max_length=15,
     choices = [(d,d) for d in NISP_GRISM_WHEEL]
   )
   frameFile = models.OneToOneField(DataContainer,
-- 
GitLab