Skip to content
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

Open
sisch opened this issue Apr 5, 2024 · 0 comments

Comments

@sisch
Copy link

sisch commented Apr 5, 2024

I was tracking down, why self.object wasn't available in my view (deriving from BSModalCreateView) during get_success_url(), as in Django's BaseCreateView.form_valid(form) the default behaviour is to set self.object = form.save().

However, in django-bootstrap-modal-forms form_valid is shadowed by FormValidationMixin which currently fails to either

  • replicate the behaviour or
  • call the super() function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant