aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/users
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
commiteeaddb27560d723ca7d61359744ceb2709fccd2d (patch)
tree04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /alphabetlearning/users
parent7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff)
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to '')
-rw-r--r--alphabetlearning/users/__init__.py (renamed from pyblackbird_cc/users/__init__.py)0
-rw-r--r--alphabetlearning/users/adapters.py (renamed from pyblackbird_cc/users/adapters.py)2
-rw-r--r--alphabetlearning/users/admin.py (renamed from pyblackbird_cc/users/admin.py)0
-rw-r--r--alphabetlearning/users/apps.py (renamed from pyblackbird_cc/users/apps.py)4
-rw-r--r--alphabetlearning/users/context_processors.py (renamed from pyblackbird_cc/users/context_processors.py)0
-rw-r--r--alphabetlearning/users/forms.py (renamed from pyblackbird_cc/users/forms.py)0
-rw-r--r--alphabetlearning/users/managers.py (renamed from pyblackbird_cc/users/managers.py)0
-rw-r--r--alphabetlearning/users/migrations/0001_initial.py (renamed from pyblackbird_cc/users/migrations/0001_initial.py)20
-rw-r--r--alphabetlearning/users/migrations/__init__.py (renamed from pyblackbird_cc/users/migrations/__init__.py)0
-rw-r--r--alphabetlearning/users/models.py (renamed from pyblackbird_cc/users/models.py)0
-rw-r--r--alphabetlearning/users/tasks.py (renamed from pyblackbird_cc/users/tasks.py)0
-rw-r--r--alphabetlearning/users/tests/__init__.py (renamed from pyblackbird_cc/users/tests/__init__.py)0
-rw-r--r--alphabetlearning/users/tests/factories.py (renamed from pyblackbird_cc/users/tests/factories.py)2
-rw-r--r--alphabetlearning/users/tests/test_admin.py (renamed from pyblackbird_cc/users/tests/test_admin.py)4
-rw-r--r--alphabetlearning/users/tests/test_forms.py (renamed from pyblackbird_cc/users/tests/test_forms.py)4
-rw-r--r--alphabetlearning/users/tests/test_managers.py (renamed from pyblackbird_cc/users/tests/test_managers.py)2
-rw-r--r--alphabetlearning/users/tests/test_models.py (renamed from pyblackbird_cc/users/tests/test_models.py)2
-rw-r--r--alphabetlearning/users/tests/test_tasks.py (renamed from pyblackbird_cc/users/tests/test_tasks.py)4
-rw-r--r--alphabetlearning/users/tests/test_urls.py (renamed from pyblackbird_cc/users/tests/test_urls.py)2
-rw-r--r--alphabetlearning/users/tests/test_views.py (renamed from pyblackbird_cc/users/tests/test_views.py)12
-rw-r--r--alphabetlearning/users/urls.py (renamed from pyblackbird_cc/users/urls.py)0
-rw-r--r--alphabetlearning/users/views.py (renamed from pyblackbird_cc/users/views.py)2
22 files changed, 33 insertions, 27 deletions
diff --git a/pyblackbird_cc/users/__init__.py b/alphabetlearning/users/__init__.py
index e69de29..e69de29 100644
--- a/pyblackbird_cc/users/__init__.py
+++ b/alphabetlearning/users/__init__.py
diff --git a/pyblackbird_cc/users/adapters.py b/alphabetlearning/users/adapters.py
index b13f3ca..29396c4 100644
--- a/pyblackbird_cc/users/adapters.py
+++ b/alphabetlearning/users/adapters.py
@@ -10,7 +10,7 @@ if typing.TYPE_CHECKING:
from allauth.socialaccount.models import SocialLogin
from django.http import HttpRequest
- from pyblackbird_cc.users.models import User
+ from alphabetlearning.users.models import User
class AccountAdapter(DefaultAccountAdapter):
diff --git a/pyblackbird_cc/users/admin.py b/alphabetlearning/users/admin.py
index 04da035..04da035 100644
--- a/pyblackbird_cc/users/admin.py
+++ b/alphabetlearning/users/admin.py
diff --git a/pyblackbird_cc/users/apps.py b/alphabetlearning/users/apps.py
index beec953..a4e4679 100644
--- a/pyblackbird_cc/users/apps.py
+++ b/alphabetlearning/users/apps.py
@@ -5,9 +5,9 @@ from django.utils.translation import gettext_lazy as _
class UsersConfig(AppConfig):
- name = "pyblackbird_cc.users"
+ name = "alphabetlearning.users"
verbose_name = _("Users")
def ready(self):
with contextlib.suppress(ImportError):
- import pyblackbird_cc.users.signals # noqa: F401
+ import alphabetlearning.users.signals # noqa: F401
diff --git a/pyblackbird_cc/users/context_processors.py b/alphabetlearning/users/context_processors.py
index e2633ae..e2633ae 100644
--- a/pyblackbird_cc/users/context_processors.py
+++ b/alphabetlearning/users/context_processors.py
diff --git a/pyblackbird_cc/users/forms.py b/alphabetlearning/users/forms.py
index fe8a886..fe8a886 100644
--- a/pyblackbird_cc/users/forms.py
+++ b/alphabetlearning/users/forms.py
diff --git a/pyblackbird_cc/users/managers.py b/alphabetlearning/users/managers.py
index d8beaa4..d8beaa4 100644
--- a/pyblackbird_cc/users/managers.py
+++ b/alphabetlearning/users/managers.py
diff --git a/pyblackbird_cc/users/migrations/0001_initial.py b/alphabetlearning/users/migrations/0001_initial.py
index 6f2c3fb..20b1233 100644
--- a/pyblackbird_cc/users/migrations/0001_initial.py
+++ b/alphabetlearning/users/migrations/0001_initial.py
@@ -4,11 +4,10 @@ import django.utils.timezone
from django.db import migrations
from django.db import models
-import pyblackbird_cc.users.models
+import alphabetlearning.users.models
class Migration(migrations.Migration):
-
initial = True
dependencies = [
@@ -32,7 +31,9 @@ class Migration(migrations.Migration):
(
"last_login",
models.DateTimeField(
- blank=True, null=True, verbose_name="last login",
+ blank=True,
+ null=True,
+ verbose_name="last login",
),
),
(
@@ -46,7 +47,9 @@ class Migration(migrations.Migration):
(
"email",
models.EmailField(
- unique=True, max_length=254, verbose_name="email address",
+ unique=True,
+ max_length=254,
+ verbose_name="email address",
),
),
(
@@ -68,13 +71,16 @@ class Migration(migrations.Migration):
(
"date_joined",
models.DateTimeField(
- default=django.utils.timezone.now, verbose_name="date joined",
+ default=django.utils.timezone.now,
+ verbose_name="date joined",
),
),
(
"name",
models.CharField(
- blank=True, max_length=255, verbose_name="Name of User",
+ blank=True,
+ max_length=255,
+ verbose_name="Name of User",
),
),
(
@@ -106,7 +112,7 @@ class Migration(migrations.Migration):
"abstract": False,
},
managers=[
- ("objects", pyblackbird_cc.users.models.UserManager()),
+ ("objects", alphabetlearning.users.models.UserManager()),
],
),
]
diff --git a/pyblackbird_cc/users/migrations/__init__.py b/alphabetlearning/users/migrations/__init__.py
index e69de29..e69de29 100644
--- a/pyblackbird_cc/users/migrations/__init__.py
+++ b/alphabetlearning/users/migrations/__init__.py
diff --git a/pyblackbird_cc/users/models.py b/alphabetlearning/users/models.py
index f536bc7..f536bc7 100644
--- a/pyblackbird_cc/users/models.py
+++ b/alphabetlearning/users/models.py
diff --git a/pyblackbird_cc/users/tasks.py b/alphabetlearning/users/tasks.py
index ca51cd7..ca51cd7 100644
--- a/pyblackbird_cc/users/tasks.py
+++ b/alphabetlearning/users/tasks.py
diff --git a/pyblackbird_cc/users/tests/__init__.py b/alphabetlearning/users/tests/__init__.py
index e69de29..e69de29 100644
--- a/pyblackbird_cc/users/tests/__init__.py
+++ b/alphabetlearning/users/tests/__init__.py
diff --git a/pyblackbird_cc/users/tests/factories.py b/alphabetlearning/users/tests/factories.py
index 5c83741..c0e94a3 100644
--- a/pyblackbird_cc/users/tests/factories.py
+++ b/alphabetlearning/users/tests/factories.py
@@ -5,7 +5,7 @@ from factory import Faker
from factory import post_generation
from factory.django import DjangoModelFactory
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
class UserFactory(DjangoModelFactory):
diff --git a/pyblackbird_cc/users/tests/test_admin.py b/alphabetlearning/users/tests/test_admin.py
index 5132d21..bd7296f 100644
--- a/pyblackbird_cc/users/tests/test_admin.py
+++ b/alphabetlearning/users/tests/test_admin.py
@@ -8,7 +8,7 @@ from django.contrib.auth.models import AnonymousUser
from django.urls import reverse
from pytest_django.asserts import assertRedirects
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
class TestUserAdmin:
@@ -48,7 +48,7 @@ class TestUserAdmin:
def _force_allauth(self, settings):
settings.DJANGO_ADMIN_FORCE_ALLAUTH = True
# Reload the admin module to apply the setting change
- import pyblackbird_cc.users.admin as users_admin
+ import alphabetlearning.users.admin as users_admin
with contextlib.suppress(admin.sites.AlreadyRegistered):
reload(users_admin)
diff --git a/pyblackbird_cc/users/tests/test_forms.py b/alphabetlearning/users/tests/test_forms.py
index 0e4e17a..9ab1f7e 100644
--- a/pyblackbird_cc/users/tests/test_forms.py
+++ b/alphabetlearning/users/tests/test_forms.py
@@ -2,8 +2,8 @@
from django.utils.translation import gettext_lazy as _
-from pyblackbird_cc.users.forms import UserAdminCreationForm
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.forms import UserAdminCreationForm
+from alphabetlearning.users.models import User
class TestUserAdminCreationForm:
diff --git a/pyblackbird_cc/users/tests/test_managers.py b/alphabetlearning/users/tests/test_managers.py
index 66cad8d..1e5a5e3 100644
--- a/pyblackbird_cc/users/tests/test_managers.py
+++ b/alphabetlearning/users/tests/test_managers.py
@@ -3,7 +3,7 @@ from io import StringIO
import pytest
from django.core.management import call_command
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
@pytest.mark.django_db()
diff --git a/pyblackbird_cc/users/tests/test_models.py b/alphabetlearning/users/tests/test_models.py
index 33802cd..502536f 100644
--- a/pyblackbird_cc/users/tests/test_models.py
+++ b/alphabetlearning/users/tests/test_models.py
@@ -1,4 +1,4 @@
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
def test_user_get_absolute_url(user: User):
diff --git a/pyblackbird_cc/users/tests/test_tasks.py b/alphabetlearning/users/tests/test_tasks.py
index 6282bfb..92f0e8a 100644
--- a/pyblackbird_cc/users/tests/test_tasks.py
+++ b/alphabetlearning/users/tests/test_tasks.py
@@ -1,8 +1,8 @@
import pytest
from celery.result import EagerResult
-from pyblackbird_cc.users.tasks import get_users_count
-from pyblackbird_cc.users.tests.factories import UserFactory
+from alphabetlearning.users.tasks import get_users_count
+from alphabetlearning.users.tests.factories import UserFactory
pytestmark = pytest.mark.django_db
diff --git a/pyblackbird_cc/users/tests/test_urls.py b/alphabetlearning/users/tests/test_urls.py
index e5bdc25..e70dc03 100644
--- a/pyblackbird_cc/users/tests/test_urls.py
+++ b/alphabetlearning/users/tests/test_urls.py
@@ -1,7 +1,7 @@
from django.urls import resolve
from django.urls import reverse
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
def test_detail(user: User):
diff --git a/pyblackbird_cc/users/tests/test_views.py b/alphabetlearning/users/tests/test_views.py
index 5ca13fc..27e6064 100644
--- a/pyblackbird_cc/users/tests/test_views.py
+++ b/alphabetlearning/users/tests/test_views.py
@@ -12,12 +12,12 @@ from django.test import RequestFactory
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
-from pyblackbird_cc.users.forms import UserAdminChangeForm
-from pyblackbird_cc.users.models import User
-from pyblackbird_cc.users.tests.factories import UserFactory
-from pyblackbird_cc.users.views import UserRedirectView
-from pyblackbird_cc.users.views import UserUpdateView
-from pyblackbird_cc.users.views import user_detail_view
+from alphabetlearning.users.forms import UserAdminChangeForm
+from alphabetlearning.users.models import User
+from alphabetlearning.users.tests.factories import UserFactory
+from alphabetlearning.users.views import UserRedirectView
+from alphabetlearning.users.views import UserUpdateView
+from alphabetlearning.users.views import user_detail_view
pytestmark = pytest.mark.django_db
diff --git a/pyblackbird_cc/users/urls.py b/alphabetlearning/users/urls.py
index 56c246c..56c246c 100644
--- a/pyblackbird_cc/users/urls.py
+++ b/alphabetlearning/users/urls.py
diff --git a/pyblackbird_cc/users/views.py b/alphabetlearning/users/views.py
index 26876a1..215daa3 100644
--- a/pyblackbird_cc/users/views.py
+++ b/alphabetlearning/users/views.py
@@ -6,7 +6,7 @@ from django.views.generic import DetailView
from django.views.generic import RedirectView
from django.views.generic import UpdateView
-from pyblackbird_cc.users.models import User
+from alphabetlearning.users.models import User
class UserDetailView(LoginRequiredMixin, DetailView):