From 4984ee138f62227c619e52865b0f2906fdb12ae5 Mon Sep 17 00:00:00 2001 From: Holger Sielaff Date: Wed, 27 Aug 2025 10:24:07 +0200 Subject: [PATCH] not self.objects :( --- proxmox/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/models.py b/proxmox/models.py index 00aaf79..9deccd1 100644 --- a/proxmox/models.py +++ b/proxmox/models.py @@ -345,7 +345,7 @@ class LxcTemplate(ProxmoxAbstractModel, TaskAwareModelMixin): def save(self, *args, **kwargs): if self.is_default_template: - self.objects.filter(models.Q(is_default_template=True), ~models.Q(internal_id=self.pk)).update(is_default_template=False) + self.__class__.objects.filter(models.Q(is_default_template=True), ~models.Q(internal_id=self.pk)).update(is_default_template=False) super().save(*args, **kwargs) def __str__(self):