1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

[5.2.x] Fixed #36198 -- Implemented unresolved transform expression replacement.

This allows the proper resolving of F("field__transform") when
performing constraint validation.

Thanks Tom Hall for the report and Sarah for the test.

Prerequisite for #36518.

Backport of fc30355107 from main.
This commit is contained in:
Simon Charette
2025-02-18 12:43:38 -05:00
committed by Sarah Boyce
parent 5aefd005fc
commit e5ccb69bc3
4 changed files with 71 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ class UniqueConstraintProduct(models.Model):
name = models.CharField(max_length=255)
color = models.CharField(max_length=32, null=True)
age = models.IntegerField(null=True)
updated = models.DateTimeField(null=True)
class Meta:
constraints = [