Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/model-api.txt
View
5 docs/model-api.txt
@@ -304,6 +304,11 @@ Field Types
many toppings on a pizza)::
meta.ForeignKey(Pizza)
+
+ .. admonition:: Note
+
+ To create a recursive relationship, use a ``ForeignKey`` that relates
+ to ``"self"`` (i.e. ``meta.ForeignKey("self")``).
``ForeignKey`` fields take a large number of extra arguments for defining how
the relationship should work. All are optional:
Please sign in to comment.
Something went wrong with that request. Please try again.