-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormValidationMixin shadows setting of self.object (defined in BaseCreateView) #236
Comments
Having the same issue, found any workarounds yet? For now I have to revert back to an older version. |
Hi, comrades.
It gives control over the object by self.object |
MarkVergunst
added a commit
to MarkVergunst/django-bootstrap-modal-forms
that referenced
this issue
Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was tracking down, why self.object wasn't available in my view (deriving from BSModalCreateView) during
get_success_url()
, as in Django'sBaseCreateView.form_valid(form)
the default behaviour is to setself.object = form.save()
.However, in django-bootstrap-modal-forms form_valid is shadowed by FormValidationMixin which currently fails to either
The text was updated successfully, but these errors were encountered: