diff options
| author | Tim Graham <timograham@gmail.com> | 2016-06-07 08:53:05 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-07 08:53:05 -0400 |
| commit | 908c26b079f2d657e30a3155d591a2467ba7d339 (patch) | |
| tree | f95b3ed5f9d35c73a5baa3fab3677a3634214908 | |
| parent | 1a2a7cc01e7c46432605854f143a548635f027e5 (diff) | |
Fixed typos in db/models/fields/related_descriptors.py
| -rw-r--r-- | django/db/models/fields/related_descriptors.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/fields/related_descriptors.py b/django/db/models/fields/related_descriptors.py index da5ae46bb7..c217b9b2b0 100644 --- a/django/db/models/fields/related_descriptors.py +++ b/django/db/models/fields/related_descriptors.py @@ -205,7 +205,7 @@ class ForwardManyToOneDescriptor(object): - ``self`` is the descriptor managing the ``parent`` attribute - ``instance`` is the ``child`` instance - - ``value`` in the ``parent`` instance on the right of the equal sign + - ``value`` is the ``parent`` instance on the right of the equal sign """ # An object must be an instance of the related class. if value is not None and not isinstance(value, self.field.remote_field.model._meta.concrete_model): @@ -417,7 +417,7 @@ class ReverseOneToOneDescriptor(object): - ``self`` is the descriptor managing the ``restaurant`` attribute - ``instance`` is the ``place`` instance - - ``value`` in the ``restaurant`` instance on the right of the equal sign + - ``value`` is the ``restaurant`` instance on the right of the equal sign Keep in mind that ``Restaurant`` holds the foreign key to ``Place``. """ @@ -504,7 +504,7 @@ class ReverseManyToOneDescriptor(object): - ``self`` is the descriptor managing the ``children`` attribute - ``instance`` is the ``parent`` instance - - ``instance_type`` in the ``Parent`` class (we don't need it) + - ``cls`` is the ``Parent`` class (unused) """ if instance is None: return self @@ -519,7 +519,7 @@ class ReverseManyToOneDescriptor(object): - ``self`` is the descriptor managing the ``children`` attribute - ``instance`` is the ``parent`` instance - - ``value`` in the ``children`` sequence on the right of the equal sign + - ``value`` is the ``children`` sequence on the right of the equal sign """ warnings.warn( 'Direct assignment to the reverse side of a related set is ' |
