In this example, an Article can have many Categories (as “primary”) and many Categories (as “secondary”).
Set related_name to designate what the reverse relationship is called.
Django | 20. Multiple many-to-many relationships between the same two tables | Django Documentation:
Tuesday, July 15, 2008
Django Block Quote Test
Another block quote test:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment