#34296: Formset validation does not consider UniqueConstraint with F()
expressions.
-------------------------------------+-------------------------------------
Reporter: Jannis Vajen | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: formset, | Triage Stage: Accepted
constraints |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
As a workaround you can use `fields` instead of `*expressions`, e.g.
{{{
UniqueConstraint(fields=["poet", "name"],
name="unique_together_poet_name")
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34296#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070185f1bff505-d055daca-c9dd-4811-a77b-87d6db028ec3-000000%40eu-central-1.amazonses.com.