On Wed, Feb 13, 2013 at 9:45 AM, David <[email protected]> wrote:

> I am working through the tutorial and find that the *def
> __unicode__(self):* command to give an object a readable name in admin is
> not working.  I am cutting code from the tutorial.  When I access the
> detail screen in /admin/ all I see is [table name] object and not the name
> I defined in def __unicode__(self): return: self.name
>
> I am working with the 1.6dev release in a 64bit Win7 environment.
>
> Is this a known issue with dev?  I have searched Django users without
> success.
>
>

Without seeing the code, it's hard to tell. If you could post the relevant
model.py code and the admin.py code (http://dpaste.org/ is your friend)

Does your model have a field called name?

Have you restarted the test or webserver since you added the change?

Cheers
L.






> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
So the future isn't a boot stamping on a human face, forever. It's a person
in a beige business outfit advocating beige policies that nobody wants (but
nobody can quite articulate a coherent alternative to) with a false mandate
obtained by performing rituals of representative democracy that offer as
much actual choice as a Stalinist one-party state. And resistance is
futile, because if you succeed in overthrowing the beige dictatorship, you
will become that which you opposed.

http://www.antipope.org/charlie/blog-static/2013/02/political-failure-modes-and-th.html

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to