fix: start_date validation logic

This commit is contained in:
ITQ
2025-02-21 07:20:03 +03:00
parent 11a0de44ae
commit 39810d81ed
@@ -105,7 +105,7 @@ class Campaign(BaseModel):
original = Campaign.objects.get(id=self.id or "")
if (
original.start_date != self.start_date
and self.start_date <= current_date
and self.start_date < current_date
):
raise ValidationError(err)
except Campaign.DoesNotExist: