fix: start_date validation logic
This commit is contained in:
1 parent
7744db7dad
commit
1150a5d16d
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user