I have this model form set, but I keep getting “‘id’: [‘Select a valid choice. That choice is not one of
the available choices.’]}” the files are at View paste NYUA
Side note: In the future, please copy/paste your code fragments here instead of on external sites. When posting code here, enclose each file between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep the code properly formatted.
It appears that you didn’t set the queryset
attribute to the same queryset when you were binding the form data from the POST data.
Hi Ken, thank you for your reply! I will remember to paste the code in the future
Best, Mads