diff options
author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-01-25 14:02:33 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-02-21 11:58:42 -0500 |
commit | 5a6f70b4281817656db2f36c5919036d38fcce7f (patch) | |
tree | 0fa649e905d960b54c5a65d80be23e42f900c23d /django/core/serializers/python.py | |
parent | 3eb679a86956d9eedf24492f0002de002f7180f5 (diff) | |
download | django-5a6f70b4281817656db2f36c5919036d38fcce7f.tar.gz |
Refs #27656 -- Updated django.core docstring verbs according to PEP 257.
Diffstat (limited to 'django/core/serializers/python.py')
-rw-r--r-- | django/core/serializers/python.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index a299ed62c8..80c8bfe1d2 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -14,7 +14,7 @@ from django.utils.encoding import force_text, is_protected_type class Serializer(base.Serializer): """ - Serializes a QuerySet to basic Python objects. + Serialize a QuerySet to basic Python objects. """ internal_use_only = True @@ -180,9 +180,7 @@ def Deserializer(object_list, *, using=DEFAULT_DB_ALIAS, ignorenonexistent=False def _get_model(model_identifier): - """ - Helper to look up a model from an "app_label.model_name" string. - """ + """Look up a model from an "app_label.model_name" string.""" try: return apps.get_model(model_identifier) except (LookupError, TypeError): |