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

Migrate to AbstractUser #220

Open
p0lygun opened this issue Sep 6, 2023 · 0 comments
Open

Migrate to AbstractUser #220

p0lygun opened this issue Sep 6, 2023 · 0 comments
Labels
1 priority: medium 🥈 issues that needs to be done in near future documentation 📚 Improvements or additions to documentation help wanted 🙏 Extra attention is needed type:backend 🖥 issues that need addition/modification on backend type: needs triage 🔍 issues whose priority is not yet decided

Comments

@p0lygun
Copy link
Member

p0lygun commented Sep 6, 2023

When I started this project I made a grave mistake of using the default user model for everything, Fast forward to today we maintain two models Users and Profiles which ideally should be one. In this task, we will have to migrate every user to a CustomUser model that subclasses from AbstractUser.

Tasks

  • Identify and replace every direct usage of the User model with get_user_model.
  • Create a new Custom user and define a relationship with the Profile model.
  • Write migrate strategy to migrate all current users to the AbstractUser model

This is the basic overview of the task, a much more detailed discussion must take place before starting with the task.

@p0lygun p0lygun added documentation 📚 Improvements or additions to documentation help wanted 🙏 Extra attention is needed 1 priority: medium 🥈 issues that needs to be done in near future type:backend 🖥 issues that need addition/modification on backend type: needs triage 🔍 issues whose priority is not yet decided ASoC Issues that are picked for ASoC labels Sep 6, 2023
@p0lygun p0lygun removed the ASoC Issues that are picked for ASoC label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 priority: medium 🥈 issues that needs to be done in near future documentation 📚 Improvements or additions to documentation help wanted 🙏 Extra attention is needed type:backend 🖥 issues that need addition/modification on backend type: needs triage 🔍 issues whose priority is not yet decided
Projects
Status: Todo
Development

No branches or pull requests

1 participant