mirror of
https://github.com/ae-utbm/sith.git
synced 2025-08-29 12:15:44 +00:00
replace deprecated CheckConstraint.check by CheckConstraint.condition
This commit is contained in:
@@ -58,7 +58,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AddConstraint(
|
||||
model_name="returnableproduct",
|
||||
constraint=models.CheckConstraint(
|
||||
check=models.Q(
|
||||
condition=models.Q(
|
||||
("product", models.F("returned_product")), _negated=True
|
||||
),
|
||||
name="returnableproduct_product_different_from_returned",
|
||||
|
Reference in New Issue
Block a user