On Sun, Jan 11, 2009 at 7:19 PM, Bobby Roberts <tchend...@gmail.com> wrote:

>
> here's my model:
>
> from django.db import models
>
> class Testimonial(models.Model):
>        active=models.IntegerField(max_length=11, blank=False)
>        testimony=models.CharField(max_length=500)
>        name=models.CharField(max_length=75)
>        postdate = models.DateTimeField (auto_now_add=True,
> blank=False, db_index=True)
>        siteid=models.IntegerField(max_length=3,blank=False)
>
>        class Admin:
>                list_display = ('name','active','postdate','siteid')
>
>
> The user also has perms in the users to have full control over this
> model... Why can't it be seen in the admin area?


What version of Django are you using?  The use of max_length instead of
maxlength implies something later than 0.96 but the use of 'class Admin'
implies something before 1.0.  If you are using 1.0 or later 'class Admin'
is not how admin defs are specified any more, see the admin doc for the
current way.

Karen

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