diff --git a/apps/main/models/model_static_layer.py b/apps/main/models/model_static_layer.py index 9703670..a7af1b2 100644 --- a/apps/main/models/model_static_layer.py +++ b/apps/main/models/model_static_layer.py @@ -76,7 +76,7 @@ class StaticLayer(models.Model): @receiver(post_delete, sender=StaticLayer) def remove_tiles(sender, instance, **kwargs): - if hasattr(instance, "url"): + if instance.url is not None: path = instance.url rm_len = len(path) - 16 rm_path = settings.MEDIA_ROOT + path[6:rm_len] diff --git a/mfssogr/app_settings.py b/mfssogr/app_settings.py index 5ee9a3f..973abf2 100644 --- a/mfssogr/app_settings.py +++ b/mfssogr/app_settings.py @@ -42,7 +42,7 @@ INSTALLED_APPS = [ """Информация о приложении """ SITE_TITLE = "Многофункциональная система безопасности ОГР" SITE_TITLE_S = "МФСБ ОГР" -APP_VER = "1.0.15.0" +APP_VER = "1.0.15.1" APP_VEK = "2023 - 2025гг" APP_COPPIRIGHT = "Многофункциональная система безопасности ОГР"