Исправил удаление слоя

This commit is contained in:
zakhy 2025-05-19 12:10:57 +07:00
parent c345994254
commit 1c77b8e645
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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 = "Многофункциональная система безопасности ОГР"