This commit is contained in:
arthur-wsw 2021-11-09 17:11:15 -08:00 committed by GitHub
commit 244d4507ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ class Admin2:
# if no more models in an app's registry
# then delete the app from the apps.
if self.apps[app_label] is {}:
if not len(self.apps[app_label]):
del self.apps[app_label] # no
def register_app_verbose_name(self, app_label, app_verbose_name):