浏览代码

Documented "rel objects".

Kept the docstring short because these objects aren't very well defined
and they're in the crosshairs of several refactorings.
Aymeric Augustin 9 年之前
父节点
当前提交
361254810e
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      django/db/models/fields/reverse_related.py

+ 11 - 0
django/db/models/fields/reverse_related.py

@@ -1,3 +1,14 @@
+"""
+"Rel objects" for related fields.
+
+"Rel objects" (for lack of a better name) carry information about the relation
+modeled by a related field and provide some utility functions. They're stored
+in the ``remote_field`` attribute of the field.
+
+They also act as reverse fields for the purposes of the Meta API because
+they're the closest concept currently available.
+"""
+
 from __future__ import unicode_literals
 
 import warnings