[Fixed]-Django save multiple user types

1👍

I’d have the Students and Instructors fields as a separate model with a user one to one field, with this you can even have the option to have the same user work as an Instructor and as a student if that works for your case.

As for your form, you can have 3 forms view on the same page (one is for the regular registration and the other 2 differ according to what the user picks, instructor or student).

The saving part can be done in the views.py since you can extract 2 forms and save + link both instances.

If you need more clarifications just ask and I’ll gladly include some code snippets.

👤Jimmar

Leave a comment