Closed manojgudi closed 2 years ago
Looks like I hardcoded the response fk field as survey
for some reason, and to top it off, all my local usage overrides form_valid so the issue didn't occur for me. Brilliant :see_no_evil:.
I've released a new version, could you check if that works better?
Closing as should be fixed. Feel free to reopen if you're still running into issues.
Firstly, thanks for creating this package @askvortsov1 , its been v useful! I've been following the example included in the source code, the docker file works well, however in my own implementation which is very similar I get a strange django.db.utils.IntegrityError when I try to save response to a dynamic form. Here's the gist of my models:
Here's the stack trace
I was able to fix this by changing the definition of
DynamicFormMixin
class, here's the diff:Am I missing something? Is this a bug? If yes, would be happy to help you a PR, let me know, thanks!