i have try'd to go to url: http://192.168.1.1:8800/admin/polls/poll/
and i recive this error: AttributeError at /admin/polls/poll/ 'NoneType' object has no attribute 'manager' Request Method: GET Request URL: http://192.168.1.1:8800/admin/polls/poll/ Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'manager' Exception Location: /usr/local/lib/python2.5/site-packages/django/ contrib/admin/views/main.py in __init__, line 560 Python Executable: /usr/local/bin/python Python Version: 2.5.1 the source: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.question def was_published_today(self): return self.pub_date.date() == datetime.date.today() def was_published_today(self): return self.pub_date.date() == datetime.date.today() was_published_today.short_description = 'Published today?' class Admin: fields = ( (None, {'fields': ('question',)}), ('Date information', {'fields': ('pub_date',), 'classes': 'collapse'}), ) class Choice(models.Model): list_display = ('question', 'pub_date', 'was_published_today') list_filter = ['pub_date'] search_fields = ['question'] date_hierarchy = 'pub_date' poll = models.ForeignKey(Poll, edit_inline=models.TABULAR, num_in_admin=3) choice = models.CharField(max_length=200, core=True) votes = models.IntegerField(core=True) This two lines give error. # def __unicode__(self): # return self.choice I use the svn version. the last ! Thanks --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

