From a4092af3d33b2e7a5f05f6be3bdf8298d32d9ff8 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 10 Sep 2017 21:26:06 +0200 Subject: [PATCH] Removed unnecessary parens in _get_app_label_and_model_name(). --- django/db/migrations/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index dc644161fc..4dfa3dd124 100644 --- a/django/db/migrations/state.py +++ b/django/db/migrations/state.py @@ -20,7 +20,7 @@ from .exceptions import InvalidBasesError def _get_app_label_and_model_name(model, app_label=''): if isinstance(model, str): split = model.split('.', 1) - return (tuple(split) if len(split) == 2 else (app_label, split[0])) + return tuple(split) if len(split) == 2 else (app_label, split[0]) else: return model._meta.app_label, model._meta.model_name