django form data not saving to database

2016-06-28 Thread kaustubh tripathi
Hi everyone! I am creating a simple webapp using django where a user can login, choose one of the given category and create a post under the chosen category. I am having trouble in creating a post. When I create a new post through django form the date isn't saved to database. I log in to the d

Re: django form data not saving to database

2016-06-28 Thread kaustubh tripathi
I removed 'default' attribute and replaced OneToOneField with ForeignKey of Post Model still it is not saving to database. Do I need to override the save method as I did in Category Model. If yes,then any solution?? On Tuesday, June 28, 2016 at 5:44:16 PM UTC+5:30, kaustubh trip