Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obj =form.save(commit=False) does not save the AuthStampedModel Data to obj. #42

Open
jarbacoa opened this issue Dec 19, 2016 · 0 comments

Comments

@jarbacoa
Copy link

jarbacoa commented Dec 19, 2016

        obj = form.save(commit=False)
        print("created_by: ",obj.created_by)
        print("created_with_session_key: ",obj.created_with_session_key)
        print("modified_by: ",obj.modified_by)
        print("modified_with_session_key: ",obj.modified_with_session_key)
        print("created: ",obj.created)
        print("modified: ",obj.modified)

Will always return :
created_by: None
created_with_session_key: None
modified_by: None
modified_with_session_key: None
created: None
modified: None

I may be doing something wrong but from what I've tested, this is always the case. Please let me know how to save AuthStampedModel Data during a form.save(commit=False), or allow for that functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant