I use these models: from django.db import models
class Category(models.Model): title = models.CharField(maxlength=64) review = models.TextField() ord_number = models.IntegerField() def __str__(self): return self.title class Admin: pass class Publication(models.Model): title = models.CharField(maxlength=255) review = models.TextField() content = models.TextField() author = models.CharField(maxlength=255) category = models.ForeignKey(Category) date = models.DateField() url = models.URLField() def __str__(self): return self.title class Admin: pass Site Administration contains 2 models: "Categorys" and "Publications". When I enter "Categorys", I see normal behavior, but entering "Publications" crashes script: OperationalError at /admin/publications/publication/ (1054, "Unknown column 'appname_publication.category_id' in 'field list'") What should I do to fix it? P.S. mysql> select * from publications_publication; +----+------------------------+----------+---------+-------- +------------+------------------+ | id | title | review | content | author | date | url | +----+------------------------+----------+---------+-------- +------------+------------------+ | 1 | models.ManyToManyField | rtretgre | rwerew | were | 2007-05-02 | http://localhost | | 2 | models.ManyToManyField | rtretgre | rwerew | were | 2007-05-02 | http://localhost | | 3 | 56765756756 | rtretgre | rwerew | were | 2007-05-02 | http://localhost | +----+------------------------+----------+---------+-------- +------------+------------------+ Where the category_id field? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---