>> Yes: You have to call user.save() after creating it. Otherwise the user
>> > object exists, but it isn't saved to the database yet.
> That' wrong.
>
> Documentation says:
>
> create_user(username, email=None, password=None)
>
> Creates, saves and returns a User.
You're right, I was wrong :-) I overlooked that create_user is a
special call and thought it was just a generic create statement.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment