-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add study class model to schooling, add custom migration with study classes #46
Conversation
@Mitsushidu Обрати внимание, что ты не стянул обновления с dev, поэтому конфликты в ветке |
src/admin_user/admin.py
Outdated
@@ -19,6 +19,7 @@ class AdministratorAdmin(UserAdmin): | |||
(None, { | |||
'fields': ( | |||
*Administrator.REQUIRED_FIELDS, | |||
Administrator.USERNAME_FIELD, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это уже неактуально)
src/core/config/settings_for_dev.py
Outdated
'PORT': env.str('POSTGRES_PORT', default='5432'), | ||
'NAME': env('POSTGRES_NAME', default='postgres'), | ||
'USER': env('POSTGRES_USER', default='postgres'), | ||
'PASSWORD': 'postgres', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так нельзя, мы пароль будем брать с env
@@ -15,9 +15,9 @@ | |||
|
|||
DEFAULT = 'some_default_key' | |||
|
|||
SECRET_KEY = env.str('SECRET_KEY', default=DEFAULT) | |||
SECRET_KEY = env('SECRET_KEY', default=DEFAULT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А почему убрал str?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сейчас поплыла статика в админке из-за того, что запуск производим через asgi.
ТВой ПР смержим, пофиксим это дело, и если будут баги по твоей таске - пофиксим
Добавил модель study class, зарегистировал её в админке, добавил кастомную миграцию с учебными классами