While your form_invalid method is looking for reference_form as a parameter, the post method by default passes the form from get_form(form_class). I would recommend overriding post to pass both form and reference form to form_invalid and form_valid.
-- Best of luck, Dan
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/46be40e0-584d-4486-b56f-a0c703fc677f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment