Tuesday, June 5, 2018

Re: Inlineformset without foreign key possible?

Thank you for pointing me in the right direction =) looks like that class is more generic. 



On Tuesday, June 5, 2018 at 9:08:35 PM UTC, Matthew Pava wrote:

I'm not able to wrap my head around your specific application, but if you don't want to use a ForeignKey on a formset, don't use an InlineFormset.

Just use a regular BaseFormset.

https://docs.djangoproject.com/en/2.0/topics/forms/formsets/

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/50ce8098-0a00-439a-bdbf-57f340117f20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment