You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently the
User
andUserProfile
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 inUser
andUserProfile
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 byUserProfile.objects.get(user=u).name
will becomerequest.user.userprofile.name
. Such changes will be there everywhere.The text was updated successfully, but these errors were encountered: