Hello, I have the following code but I do not understand why I have the error below... could someone help me ?
class Comment(models.Model): author = models.CharField(maxlength=50) email = models.EmailField() title = models.CharField(maxlength=50) comment = models.TextField() post = models.ForeignKey(Post) parent = models.ForeignKey('self', blank=True, null=True, related_name='child') submitted_at = models.DateTimeField(auto_now_add=True) pub_date = models.DateTimeField() pub_status = models.BooleanField() def __str__(self): return self.comment class Admin: list_display = ('author', 'title', 'pub_status') list_filter = ['pub_date'] date_hierarchy = 'pub_date' search_fields = ['author', 'title', 'comment'] AttributeError at /admin/blog/comment/add/ 'bool' object has no attribute 'get' Request Method: GET Request URL: http://localhost:8000/admin/blog/comment/add/ Exception Type: AttributeError Exception Value: 'bool' object has no attribute 'get' Exception Location: /usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/models/related.py in get_manipulator_fields, line 116 --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---