On Jul 26, 12:46 pm, ramanathan <mraman2...@gmail.com> wrote:
> I stored the username, password, email id  fields in auth_user table
> using
>
> User.objects.create_user(username,email,password)
>
> But i was not able to store the first_name field..
>
> I tried User.objects.create_user
> (username,first_name=firstname,email,password)
> But it didnt work out..
>
> How to store it?
>
> Ramanathan.M

As the documentation says, create_user only takes username, email and
password parameters. You can set first_name etc on the user object it
returns.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to