mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
replace deprecated CheckConstraint.check by CheckConstraint.condition
This commit is contained in:
1 parent
23103950b8
commit
e864e82573
8 files changed
+8
-8
No files matched your search
+1
-1
@@ -212,7 +212,7 @@ class NewsDate(models.Model):
|
||||
verbose_name_plural = _("news dates")
|
||||
constraints = [
|
||||
models.CheckConstraint(
|
||||
check=Q(end_date__gte=F("start_date")),
|
||||
condition=Q(end_date__gte=F("start_date")),
|
||||
name="news_date_end_date_after_start_date",
|
||||
)
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user