diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-03-04 15:47:49 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-03-04 18:18:21 +0100 |
| commit | 8346680e1ca4a8ddc8190baf3f5f944f6418d5cf (patch) | |
| tree | ed12bc1d1077a65c1b32d410bc267266f6e3e4f9 /django/db/models/fields/__init__.py | |
| parent | 86de930f413e0ad902e11d78ac988e6743202ea6 (diff) | |
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
Diffstat (limited to 'django/db/models/fields/__init__.py')
| -rw-r--r-- | django/db/models/fields/__init__.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 8532959350..79a983b8fa 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -438,12 +438,7 @@ class Field(RegisterLookupMixin): if path.startswith("django.db.models.fields"): path = path.replace("django.db.models.fields", "django.db.models") # Return basic info - other fields should override this. - return ( - force_text(self.name, strings_only=True), - path, - [], - keywords, - ) + return (self.name, path, [], keywords) def clone(self): """ |
