Refactor project structure and update configurations for State Corp backend
- Updated project description in __init__.py - Enhanced .gitignore to exclude additional data files - Modified User model to remove first_name and last_name fields - Improved instance save method in services.py to include updated_at field - Added API tokens to .env.example for external services - Cleaned up test files for better readability - Updated Dockerfile and docker-compose.yml for improved setup - Revised README.md to reflect project changes and added changelog
This commit is contained in:
@@ -6,6 +6,10 @@ from django.utils.translation import gettext_lazy as _
|
||||
class User(AbstractUser):
|
||||
"""Расширенная модель пользователя"""
|
||||
|
||||
# Убираем first_name и last_name из модели User (они в Profile)
|
||||
first_name = None
|
||||
last_name = None
|
||||
|
||||
# Переопределяем группы и разрешения для избежания конфликта
|
||||
groups = models.ManyToManyField(
|
||||
"auth.Group",
|
||||
|
||||
Reference in New Issue
Block a user