From 78fd8de3d61a4c4fce9e07b214f6a9233966b9a9 Mon Sep 17 00:00:00 2001 From: ssorin Date: Mon, 18 Nov 2024 17:49:52 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20=E2=9C=A8(dashboard)=20rename=20qcr=5F?= =?UTF-8?q?auth=20to=20auth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dashboard/apps/auth/__init__.py | 1 + src/dashboard/apps/{qcd_auth => auth}/admin.py | 2 +- src/dashboard/apps/{qcd_auth => auth}/apps.py | 7 ++++--- .../apps/{qcd_auth => auth}/migrations/0001_initial.py | 0 src/dashboard/apps/auth/migrations/__init__.py | 1 + src/dashboard/apps/{qcd_auth => auth}/models.py | 2 +- src/dashboard/apps/auth/tests/__init__.py | 1 + src/dashboard/apps/{qcd_auth => auth}/tests/test_models.py | 2 +- src/dashboard/apps/qcd_auth/__init__.py | 1 - src/dashboard/apps/qcd_auth/migrations/__init__.py | 1 - src/dashboard/apps/qcd_auth/tests/__init__.py | 1 - 11 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 src/dashboard/apps/auth/__init__.py rename src/dashboard/apps/{qcd_auth => auth}/admin.py (88%) rename src/dashboard/apps/{qcd_auth => auth}/apps.py (66%) rename src/dashboard/apps/{qcd_auth => auth}/migrations/0001_initial.py (100%) create mode 100644 src/dashboard/apps/auth/migrations/__init__.py rename src/dashboard/apps/{qcd_auth => auth}/models.py (92%) create mode 100644 src/dashboard/apps/auth/tests/__init__.py rename src/dashboard/apps/{qcd_auth => auth}/tests/test_models.py (95%) delete mode 100644 src/dashboard/apps/qcd_auth/__init__.py delete mode 100644 src/dashboard/apps/qcd_auth/migrations/__init__.py delete mode 100644 src/dashboard/apps/qcd_auth/tests/__init__.py diff --git a/src/dashboard/apps/auth/__init__.py b/src/dashboard/apps/auth/__init__.py new file mode 100644 index 00000000..1a81ce5c --- /dev/null +++ b/src/dashboard/apps/auth/__init__.py @@ -0,0 +1 @@ +"""Dashboard auth app.""" diff --git a/src/dashboard/apps/qcd_auth/admin.py b/src/dashboard/apps/auth/admin.py similarity index 88% rename from src/dashboard/apps/qcd_auth/admin.py rename to src/dashboard/apps/auth/admin.py index ac5a6688..a1457ab7 100644 --- a/src/dashboard/apps/qcd_auth/admin.py +++ b/src/dashboard/apps/auth/admin.py @@ -1,4 +1,4 @@ -"""Dashboard qcd_auth admin.""" +"""Dashboard auth admin.""" from django.contrib import admin from django.contrib.auth.admin import UserAdmin diff --git a/src/dashboard/apps/qcd_auth/apps.py b/src/dashboard/apps/auth/apps.py similarity index 66% rename from src/dashboard/apps/qcd_auth/apps.py rename to src/dashboard/apps/auth/apps.py index 293d5682..3a17f616 100644 --- a/src/dashboard/apps/qcd_auth/apps.py +++ b/src/dashboard/apps/auth/apps.py @@ -1,12 +1,13 @@ -"""Dashboard qcd_auth app base config.""" +"""Dashboard auth app base config.""" from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): - """qcd_auth app config.""" + """Auth app config.""" default_auto_field = "django.db.models.BigAutoField" - name = "apps.qcd_auth" + name = "apps.auth" + label = "qcd_auth" verbose_name = _("Authentication") diff --git a/src/dashboard/apps/qcd_auth/migrations/0001_initial.py b/src/dashboard/apps/auth/migrations/0001_initial.py similarity index 100% rename from src/dashboard/apps/qcd_auth/migrations/0001_initial.py rename to src/dashboard/apps/auth/migrations/0001_initial.py diff --git a/src/dashboard/apps/auth/migrations/__init__.py b/src/dashboard/apps/auth/migrations/__init__.py new file mode 100644 index 00000000..cf4e9366 --- /dev/null +++ b/src/dashboard/apps/auth/migrations/__init__.py @@ -0,0 +1 @@ +"""Dashboard auth app migrations.""" diff --git a/src/dashboard/apps/qcd_auth/models.py b/src/dashboard/apps/auth/models.py similarity index 92% rename from src/dashboard/apps/qcd_auth/models.py rename to src/dashboard/apps/auth/models.py index e3a263b2..1dfcdce8 100644 --- a/src/dashboard/apps/qcd_auth/models.py +++ b/src/dashboard/apps/auth/models.py @@ -1,4 +1,4 @@ -"""Dashboard qcd_auth models.""" +"""Dashboard auth models.""" from django.contrib.auth.models import AbstractUser diff --git a/src/dashboard/apps/auth/tests/__init__.py b/src/dashboard/apps/auth/tests/__init__.py new file mode 100644 index 00000000..7be56a75 --- /dev/null +++ b/src/dashboard/apps/auth/tests/__init__.py @@ -0,0 +1 @@ +"""Dashboard auth app tests.""" diff --git a/src/dashboard/apps/qcd_auth/tests/test_models.py b/src/dashboard/apps/auth/tests/test_models.py similarity index 95% rename from src/dashboard/apps/qcd_auth/tests/test_models.py rename to src/dashboard/apps/auth/tests/test_models.py index 3cf8012a..25b19c65 100644 --- a/src/dashboard/apps/qcd_auth/tests/test_models.py +++ b/src/dashboard/apps/auth/tests/test_models.py @@ -1,4 +1,4 @@ -"""Dashboard qcd_auth models tests.""" +"""Dashboard auth models tests.""" import pytest from django.contrib.auth import get_user_model diff --git a/src/dashboard/apps/qcd_auth/__init__.py b/src/dashboard/apps/qcd_auth/__init__.py deleted file mode 100644 index ad91b1c5..00000000 --- a/src/dashboard/apps/qcd_auth/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Dashboard qcd_auth app.""" diff --git a/src/dashboard/apps/qcd_auth/migrations/__init__.py b/src/dashboard/apps/qcd_auth/migrations/__init__.py deleted file mode 100644 index dba0df8c..00000000 --- a/src/dashboard/apps/qcd_auth/migrations/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Dashboard qcd_auth app migrations.""" diff --git a/src/dashboard/apps/qcd_auth/tests/__init__.py b/src/dashboard/apps/qcd_auth/tests/__init__.py deleted file mode 100644 index 6881491f..00000000 --- a/src/dashboard/apps/qcd_auth/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Dashboard qcd_auth app tests."""