diff options
Diffstat (limited to 'django/db/models/utils.py')
| -rw-r--r-- | django/db/models/utils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/db/models/utils.py b/django/db/models/utils.py index cda96277a6..7d563c4ae0 100644 --- a/django/db/models/utils.py +++ b/django/db/models/utils.py @@ -1,6 +1,3 @@ -from django.utils import six - - def make_model_tuple(model): """ Takes a model or a string of the form "app_label.ModelName" and returns a @@ -10,7 +7,7 @@ def make_model_tuple(model): try: if isinstance(model, tuple): model_tuple = model - elif isinstance(model, six.string_types): + elif isinstance(model, str): app_label, model_name = model.split(".") model_tuple = app_label, model_name.lower() else: |
