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
The addMessage() function located in Message.py needs to be re-worked as it is currently 1) hard to debug and 2) needs to have a better logic for login status
Tasks
Separate the function into 2 functions based on login status
@eselkin do you have any recommendations on how you would like the function to be refactor? Could you also provide some details regarding the login status?
Login status is handled by django and should not be our focus. It is the standard operation of django to create a user object when a user is logged in.
Basically, I would consider taking the function and create two: 1. addMessage and 2. addMessageUser
The two are significantly different in how they process data (i.e. the User function does not need a user to add information about themselves each time they submit a message, because it is all contained in their profile)
Context
The
addMessage()
function located in Message.py needs to be re-worked as it is currently 1) hard to debug and 2) needs to have a better logic for login statusTasks
Files
Dependence
The text was updated successfully, but these errors were encountered: