oursky / django-material-demo

0 stars 3 forks source link

Fix nested form save behaviour #33

Closed Steven-Chan closed 2 years ago

Steven-Chan commented 2 years ago

refs #7

This is a fix for https://github.com/oursky/django-material-demo/pull/31. Turns out things are not that complicated. We just need to assign the parent instance back, which is something I expect the library to do. I think it might be because of the different behaviour of newer django version.

I think in the long run, we will need to maintain the django-superform ourselves, and we would not require developers to fix the behaviour like we do in this PR.