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

Redo the User and UserProfile model #4

Open
ChetanKhanna opened this issue Jul 10, 2020 · 0 comments
Open

Redo the User and UserProfile model #4

ChetanKhanna opened this issue Jul 10, 2020 · 0 comments

Comments

@ChetanKhanna
Copy link
Member

Currently the User and UserProfile models are poorly linked. When creating a new user from the admin panel we first have to create a user, then go to UserProfile model and create one there. Also, there are repetitions of fields in User and UserProfile models. For a more neat way to handling them, refer the TMS repository.

However changing them can be a bit tricky. A lot of code might have to be modified. For example, u = request.user, followed by UserProfile.objects.get(user=u).name will become request.user.userprofile.name. Such changes will be there everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant