From 99c6c3c34df42f5310404f50ebb016e8f4fe25f4 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 29 Oct 2025 17:41:44 +0330 Subject: [PATCH] fix - replace BaseModel -> AbstrasctUser (MRO) --- .idea/data_source_mapping.xml | 6 ++++++ .../migrations/0044_remove_username_unique.py | 17 +++++++++++++++++ logs/django_requests.log | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 .idea/data_source_mapping.xml create mode 100644 apps/authentication/migrations/0044_remove_username_unique.py diff --git a/.idea/data_source_mapping.xml b/.idea/data_source_mapping.xml new file mode 100644 index 0000000..1ca2b7d --- /dev/null +++ b/.idea/data_source_mapping.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/authentication/migrations/0044_remove_username_unique.py b/apps/authentication/migrations/0044_remove_username_unique.py new file mode 100644 index 0000000..b3910cc --- /dev/null +++ b/apps/authentication/migrations/0044_remove_username_unique.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0 on 2025-10-29 13:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('authentication', '0043_alter_user_options_alter_user_managers'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='username', + field=models.CharField(max_length=150, unique=False), + ), + ] diff --git a/logs/django_requests.log b/logs/django_requests.log index 448dbe4..828019d 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -591,3 +591,9 @@ AssertionError: .validate() should return the validated data [2025-10-29 17:10:46,190] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader [2025-10-29 17:25:00,650] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\models.py changed, reloading. [2025-10-29 17:25:02,925] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-10-29 17:29:04,836] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\models.py changed, reloading. +[2025-10-29 17:29:07,085] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-10-29 17:34:45,920] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\models.py changed, reloading. +[2025-10-29 17:34:48,818] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-10-29 17:41:23,861] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\models.py changed, reloading. +[2025-10-29 17:41:27,025] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader