re: Django inline formsets with Class-based views and crispy forms VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Can you please share how to do the same thing without using crispy forms? I have tried to do the same and createview is working fine but in UpdateV...
 

Hi Sachin,

To implement it without crispy forms check out this blog, the solution is not using crispy forms. The UpdateView is essentially the same as CreateView except you need to pass instance (instance=self.object) in get_context_data() because the instance already exists in the database (the code part for this is here ). Hope it helps!

code of conduct - report abuse