mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed unnecessary parens in _get_app_label_and_model_name().
This commit is contained in:
parent
a599ae6018
commit
a4092af3d3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user