summaryrefslogtreecommitdiff
path: root/django/db/models/fields/reverse_related.py
diff options
context:
space:
mode:
authorAnton Samarchyan <anton.samarchyan@savoirfairelinux.com>2017-01-24 18:04:12 -0500
committerTim Graham <timograham@gmail.com>2017-02-28 09:17:27 -0500
commit60e52a047e55bc4cd5a93a8bd4d07baed27e9a22 (patch)
tree010a363968b1ed41adf2e64c98d572d7148a2a5e /django/db/models/fields/reverse_related.py
parentd6e26e5b7c8063c2cc5aa045edea6555bf358fc2 (diff)
downloaddjango-60e52a047e55bc4cd5a93a8bd4d07baed27e9a22.tar.gz
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
Diffstat (limited to 'django/db/models/fields/reverse_related.py')
-rw-r--r--django/db/models/fields/reverse_related.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/fields/reverse_related.py b/django/db/models/fields/reverse_related.py
index 3d5439ab84..3e0285abea 100644
--- a/django/db/models/fields/reverse_related.py
+++ b/django/db/models/fields/reverse_related.py
@@ -66,7 +66,7 @@ class ForeignObjectRel:
@property
def target_field(self):
"""
- When filtering against this relation, returns the field on the remote
+ When filtering against this relation, return the field on the remote
model against which the filtering should happen.
"""
target_fields = self.get_path_info()[-1].target_fields
@@ -116,8 +116,8 @@ class ForeignObjectRel:
def get_choices(self, include_blank=True, blank_choice=BLANK_CHOICE_DASH):
"""
- Return choices with a default blank choices included, for use as
- SelectField choices for this field.
+ Return choices with a default blank choices included, for use
+ as <select> choices for this field.
Analog of django.db.models.fields.Field.get_choices(), provided
initially for utilization by RelatedFieldListFilter.
@@ -127,7 +127,7 @@ class ForeignObjectRel:
]
def is_hidden(self):
- "Should the related object be hidden?"
+ """Should the related object be hidden?"""
return bool(self.related_name) and self.related_name[-1] == '+'
def get_joining_columns(self):