mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
#19973: lsmodels() should prefix models with app label
This commit is contained in:
parent
a0f55f6590
commit
f083cf79fe
@ -78,8 +78,8 @@ class Command(BaseCommand):
|
|||||||
for app_label in app_labels:
|
for app_label in app_labels:
|
||||||
app_name = apps.get_app_config(app_label).verbose_name
|
app_name = apps.get_app_config(app_label).verbose_name
|
||||||
print(f'{app_name}:')
|
print(f'{app_name}:')
|
||||||
for m in self.django_models[app_label]:
|
for model in self.django_models[app_label]:
|
||||||
print(f' {m}')
|
print(f' {app_label}.{model}')
|
||||||
|
|
||||||
def get_namespace(self):
|
def get_namespace(self):
|
||||||
namespace = defaultdict(SimpleNamespace)
|
namespace = defaultdict(SimpleNamespace)
|
||||||
|
Loading…
Reference in New Issue
Block a user