Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
why don;t many to many fields save in a .save(commit=False)
8 views
Skip to first unread message
MikeKJ
unread,
Nov 22, 2013, 12:10:54 PM
11/22/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Why don't manytomany fields save like this?
112 af = editform.save(commit=False)
113 af.level_1 = level_1
114 af.level_2 = level_2
115 af.level_3 = level_3
116 af.level_4 = level_4
117 af.save()
alternatively is there a way to insert the af.level(s) into the QueryDict in the POST and therefore not need the commit=False?
Reply all
Reply to author
Forward
0 new messages