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:
committed by
Sarah Boyce
parent
5aefd005fc
commit
e5ccb69bc3
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user