I mean to add already existing items in database to field "synonims" as a hyperlinks.
> class word1(models.Model): > item=models.CharField(blank=True) > > class word2(models.Model): > itemSynonims=models. ??? HOW to define that this field will consist of > references to another words in the database? On 27 Gruo, 20:00, gintare <g.statk...@gmail.com> wrote: > Hello, > > I would like to add ForeignKey which would ass many items to class as > much i append-create-give. > > class word1(models.Model): > item=models.CharField(blank=True) > > class word2(models.Model): > itemSynonims=models.ForeignKey(word1) > > i would like to add several word1 to the class word2. > > Is there a way to create a pointer of type ForeignKey(word1), which > would > let to add many word1, word1, word1 to the same itemSynonims. > > regards -- 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.