upstream/2025.10.0 #10

Merged
simon merged 121 commits from upstream/2025.10.0 into master 2025-12-18 22:18:54 +00:00
Showing only changes of commit 313f4f326b - Show all commits
+1 -1
View File
@@ -2311,7 +2311,7 @@ class ItemProgramTime(models.Model):
end = models.DateTimeField(verbose_name=_("End"))
def clean(self):
if self.item.event.has_subevents:
if hasattr(self, 'item') and self.item and self.item.event.has_subevents:
raise ValidationError(_("You cannot use program times on an event series."))
self.clean_start_end(start=self.start, end=self.end)
super().clean()