Hi everbody, I'm trying to create tables with help of models (use postgreSQL; engin: postgresql_psycopg2). My model (part):
... class Team(models.Model): team_id = models.IntegerField(primary_key=True) name = models.CharField(maxlength=100) class Player(models.Model): player_id = models.IntegerField(primary_key=True) firstname = models.CharField(maxlength=50) lastname = models.CharField(maxlength=50) team = models.ForeignKey(Team) ... (Note: It's importand here to use own keys and not autogenerated) The command syncdb create the tables correct, but it was created a constraint with the name: team_id_referencing_tm_team_team_id_1 for the table player Now, I have trouble withe the reset-command. It will drop the constraint: team_id_referencing_tm_team_team_id (the reset was canceled with an error) Yes, I could rename the attribute-name 'team', but it's not a good solution. Have someone a better idea? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

