Browse Source

fix admin gen error

blezz-tech 2 months ago
parent
commit
54ae8b4523
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sharix_admin/signals.py

+ 1 - 1
sharix_admin/signals.py

@@ -49,7 +49,7 @@ def create_test_users(sender, **kwargs):
 
         # Создание админа
         if not get_user_model().objects.filter(phone_number="11111111111").exists():
-            admin, created = get_user_model().objects.create_superuser(
+            admin = get_user_model().objects.create_superuser(
                 'admin',
                 'admin@admin.com',
                 'Sharix!',