When I run ./manage sql for the application below the references aren't resolved and the constraint between Issue and Category isn't created.
{{{ #!python from django.db import models class Solution(models.Model): description = models.TextField() class Category(models.Model): name = models.CharField(max_length=60) class Issue(models.Model): category = models.ForeignKey(Category) name = models.CharField(max_length=60) solutions = models.ManyToManyField(Solution) class Ticket(models.Model): issue = models.ForeignKey(Issue) description = models.TextField() solution = models.ForeignKey(Solution, null=True, blank=True) }}} -- The following references should be added but depend on non-existent tables: -- ALTER TABLE `teste_issue` ADD CONSTRAINT category_id_refs_id_7209ae913a312dfb FOREIGN KEY (`category_id`) REFERENCES `teste_category` (`id`); The expected behaviour would be to add the constraint since all tables are being created. Could somebody confirm this and create a new ticket? I tried but Akismet thinks I'm selling Viagra... Version: SVN Wbr, Diogo Galvão --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---