On Fri, 2006-07-07 at 11:27 +0000, pault wrote:
> yes i am using the latest checkout version (on a windows xp pc with
> mysql)
> 
> class Text(models.Model):
>       tag = models.CharField(maxlength=50)
>       tstamp = models.DateTimeField(auto_now_add=True)
> 
>       def __str__(self):
>               return self.tag
>       
>       class Admin:
>               list_display = ('tag',)

Using this exact example, it works for me.

So, something else is going on in your code. My first guess would be
that you have inadvertently assigned to Text.objects somewhere. Inside
your exception handling block, have a look at what repr(Text.objects)
is. It should say something like 

        <django.db.models.manager.Manager object at 0x2aaaaf12d650>
        
If it doesn't, that is your problem. If it does, have a look at
dir(Text.objects) and see if that looks sensible. Ask for more help as
needed.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to