Django multiple many to many fields?

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-07T15:18:31Z Indexed on 2010/04/07 15:23 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Hello everybody

I am building a news app for my website. I want to use a sort of tag system. Each news article can have different and multiple tags. All tags are saved in a tag model, and i want to connect the tags to the newsarticle. Now is this possible with: tags = models.ForeignKey( TagsModel ) for one tag, but how i can do this with multiple of them?

Thank you!

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models