Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » add already existing items in database to field "synonims" as a hyperlinks [RSS Feed]

#1 Dec. 27, 2010 18:03:05

g.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

add already existing items in database to field "synonims" as a hyperlinks


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » add already existing items in database to field "synonims" as a hyperlinks [RSS Feed]

Board footer

Moderator control

Enjoy the 13th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support