Skip to content
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

Реализация сущностей Teacher и Student #28

Closed
KonstantinRaikhert opened this issue May 6, 2024 · 0 comments · Fixed by #36
Closed

Реализация сущностей Teacher и Student #28

KonstantinRaikhert opened this issue May 6, 2024 · 0 comments · Fixed by #36
Assignees
Labels
enhancement New feature or request

Comments

@KonstantinRaikhert
Copy link
Member

Зачем?

Тут важно, необходимо произвести наследование от Base модели, прокси. Т.к. сущности похожи.

Как нужно делать?

  • создать Django модели. Пример с прокси тут PracticumUser
  • добавить в прокси модель last_login_date, registration_date
  • завести всё в админку

Где?

src/schooling/models.py

@KonstantinRaikhert KonstantinRaikhert added the enhancement New feature or request label May 6, 2024
@nesterovv89 nesterovv89 linked a pull request May 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants