Thursday, January 30, 2014

Re: App_step.readme_id may not be NULL

Didn't seem to work. The step_forms is a modelformset_factory, so I don't know if that makes a difference. I would also like to assign a user to the readme_form, but 

                
    readme_form.user_id = request.user.id
    readme_object = readme_form.save()
    step_forms.readme = readme_object
    step_forms.save() 

doesn't work. 

 

--
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/3f38ece6-cb56-4761-9a99-9855db45473a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment