On Tue, Jun 9, 2009 at 11:22 AM, David <ww...@yahoo.com> wrote:

>
> Hi,
>
> I am in a position of "/admin/auth/user/", where it lists a user's
> username, e-mail address, first name, last name and staff status. The
> title of this page is "Select user to change". If I click a user's
> username, then I am transferred to "Change user" webpage.
>
> I checked /django/contrib/auth/models.py and found that there is a
> "sms" in User. I need this "sms". So my question is: where (or which
> view) should I modify in order to let this "sms" to be listed on the
> webpage so that I can assign a value to it?
>
> Any suggestions?
>
> Thanks so much.
> >
> It sounds like you must have modified your auth/models.py because sms
doesn't exist in any django version I'm aware of.  And modifying the
models.py file is the wrong way to extend the user model, see:
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/.
 However if you insist on this route the correct path would be to edit
the
admin.py file.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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