Module Expr Str ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num ClassDef bases body Assign NameStore TupleLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str ClassDef bases body Assign NameStore TupleLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list NameLoad
N/A N/A 
20. Multiple many-to-many relationships between the same two tables

In this example, an ``Article`` can have many "primary" ``Category`` objects
and many "secondary" ``Category`` objects.

Set ``related_name`` to designate what the reverse relationship is called.
 django.db models django.utils.encoding python_2_unicode_compatible Category N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 20 Meta N/A N/A N/A ordering N/A name N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A python_2_unicode_compatible Article N/A N/A models Model N/A N/A headline N/A N/A models CharField max_length 50 N/A pub_date N/A N/A models DateTimeField N/A primary_categories N/A N/A models ManyToManyField Category related_name primary_article_set N/A secondary_categories N/A N/A models ManyToManyField Category related_name secondary_article_set Meta N/A N/A N/A ordering N/A pub_date N/A __str__ N/A N/A self N/A N/A N/A N/A self headline N/A N/A python_2_unicode_compatible