Django - CreateView not saving form with nested formset

286 views
Skip to first unread message

Shazia Nusrat

unread,
Feb 23, 2020, 2:01:37 AM2/23/20
to django...@googlegroups.com
Hi,

Can someone help to answer the question in link?
Also I've been trying to get CreateView working with 5 inline formsets but couldn't make it work. 

Will really appreciate your help if someone can help me with working example.


Regards,

Shazia

Integr@te System

unread,
Feb 23, 2020, 1:01:03 PM2/23/20
to django...@googlegroups.com
Hi Shazia,

Plz search somewhere like this if u see for helpful:



--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD83tOx%3D0DBWuGQT4c-zp0gK7PGm5JG2KQnKgCjOWD7q7NoscQ%40mail.gmail.com.

bnmng

unread,
Feb 23, 2020, 8:29:07 PM2/23/20
to Django users
One thing you can try for troubleshooting is an else clause to go with your is_valid
if education.is_valid():
                education.save(commit=False)
                education.instance = self.object
                education.save()
else:
print('There was an error')
for err in education.errors:
print(err)

maninder singh Kumar

unread,
Feb 23, 2020, 10:23:08 PM2/23/20
to django...@googlegroups.com
Great thought
 
               
 


--
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...@googlegroups.com.

Shazia Nusrat

unread,
Mar 3, 2020, 12:53:47 PM3/3/20
to django...@googlegroups.com
Hi,

Tried all suggestions above and nothing worked out. 
To my surprise I heard Python/Django community is more robust and helping before decided to pick my dev stack. But no contribution by the community.



Reply all
Reply to author
Forward
0 new messages