I am using django-extra-views, and I wanted to fill out a form and its associated rows with pre-populated data, and then save (create an object). So far, I:
from extra_views import CreateWithInlinesView class ItemCreateView(extra_views.CreateWithInlinesView): def dispatch(self, request, item_pk, *args, **kwargs): self.item = models.Item.objects.get(id=item_pk) return super(ItemCreateView, self).dispatch( request, *args, **kwargs ) def get_initial(self):
However, the object is saved without inline strings, even though the values ββin the strings are passed through POST. What am I doing wrong? Should I initialize the form and embed another way?
source share