-
Notifications
You must be signed in to change notification settings - Fork 0
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
Modify code to use the django admin page instead of the Categorizers table #132
Comments
We know that a new categorizer hasn't logged in before if they are in the categorizers Django but do not have a row in the categorizers table. At that point, complete the rest of the table by asking them for their name and initials. Doing it this way, we don't need to trigger any row insertion. As soon as they login for the first time, ask them right away for the info you need (name and initials) and immediately create the row in the categorizers table. |
|
Test case: Mess with the URL. Instead of filling out the categorizer form, go to the main page and try to make a categorization. This should fail because there is no foreign key into the categorizers table to insert the categorization. |
Use a form for categorizers. See https://docs.djangoproject.com/en/3.2/topics/forms/ |
#100 (comment)
The text was updated successfully, but these errors were encountered: