Hello again. I'm working my way through James Bennet's book. He is implementing the use of a search function in the admin page.
The models.py for the project is supposed to read thus: from django.db import models from django.contrib.flatpages.models import FlatPage # Create your models here. class SearchKeyword(models.Model): keyword = models.CharField(max_length=50) page = models.ForeignKey(FlatPage, edit_inline=models.STACKED, min_num_in_admin=3, num_extra_on_change=1) def __unicode__(self): return self.keyword ========================= When I try to run the server I get this error: File "C:\cms\..\cms\search\models.py", line 7, in SearchKeyword page = models.ForeignKey(FlatPage, edit_inline=models.STACKED, AttributeError: 'module' object has no attribute 'STACKED' I really tried the search function in this forum and also tried to Google for this and couldn't find a solution. As far as what I can tell there is nothing wrong with the STACKED attribute. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---