I want the foreign key to be called taxonomy_kingdom. So would I do something like this?
taxonomy_kingdom = models.ForeignKey(TaxonomyKingdom, null=True, blank=True) superior=taxonomy_kingdom On Thu, Sep 23, 2010 at 10:18 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Sep 23, 2010 at 1:03 PM, Howard Wolf <hwrd...@gmail.com> wrote: > >> class TaxonomyPhylum(models.Model): >> name = models.CharField(max_length=100, unique=True) >> superior=taxonomy_kingdom = models.ForeignKey(TaxonomyKingdom, >> null=True, blank=True) >> > > Do you want that ForeignKey field to be named superior or taxonomy_kingdom? > Right now you've got 2 equal signs in there, and somehow that is causing > Django to try to create two columns with the 2nd name (taxonomy_kingdom_id). > > Karen > -- > http://tracey.org/kmt/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- ************************************************ Howard Wolf, wolf18 Computer Science, University of Illinois, Urbana-Champaign https://hwrdwlf18.homelinux.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.