On zaterdag 21 juli 2018 14:38:11 CEST Ike wrote:
> Good day everyone, I've been stuck with a problem I am having and I can't
> find any help online.
Even though you've done much effort to make a good problem description, you're
still making us do a lot of work before we can diagnose your issue:
- imports are missing from code
- used modules (requirements.txt) are missing (where is FilteredSelectWidget
from)
- get_success_url isn't properly indented
- the entire save code is missing (form_valid is not implemented)
It's much easier to either open source your project or setup an test project
that actually works and has either a setup.py or requirements.txt, since this
touches on several issues.
It's also completely unclear why you think you have to use function based
views.
If what you really want is to have a save done as soon as a name enters or is
removed from the box on the right, then the scope just increased tremendously
and you need to grow frontend skills.
Otherwise, things just work out of the box (upon form submission, you can call
form.save() in Formview.is_valid()) or the widget isn't worth it's salt.
--
Melvyn Sopacua