1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Used model's Options.label/label_lower where applicable.

This commit is contained in:
Mariusz Felisiak
2020-01-29 12:09:20 +01:00
committed by GitHub
parent a45c8d7ad0
commit b7a3a6c9ef
5 changed files with 26 additions and 29 deletions

View File

@@ -307,7 +307,7 @@ class Options:
return '<Options for %s>' % self.object_name
def __str__(self):
return "%s.%s" % (self.app_label, self.model_name)
return self.label_lower
def can_migrate(self, connection):
"""