Django modal Submit form with foreign key not working
问题 i have a model which is populated in a Bootstrap Modal, i am using class based view to render the form and submit it to the Database, however, when i click the save i get an error: AttributeError at /create_startupaboutform/ 'WSGIRequest' object has no attribute 'Startup' i am not sure if am assigning the FK correctly, however, for the Startup model it is working fine in function view but for class based view it is not. here is my code and i appreciate feedback on it. model.py: class Startup