[Django]-Django model.save() not writing to database

29👍

Wow, I am such an idiot. I was deleting the rows in the tables before I could actually display the events due to some code that populated the database with dummy data.

Can I delete this question or should it live on as a testament to my stupidity?

1👍

👤akonsu

0👍

You didn’t post the most import part here IHMO : how are your forms instanciated ? A ModelForm can be used to both create a new instance or update an existing one. If you pass existing instances to your forms, then your code will only update them.

Leave a comment