#31774: validate_unique in Model class doesn't validate uniqueness for
ImageField.
-------------------------------------+-------------------------------------
Reporter: Gaurav Ghildyal | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 3.0
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Gaurav Ghildyal):
Hi Carlton,
Thanks for looking into this. I will dig deeper along the lines of your
input.
Why do you think it should be in the form layer? Given that there is a
function (_perform_unique_checks ) that catches all uniqueness errors and
raises validation errors, it would be nice to fix the uniqueness check
there? The added benefit is that Django admin and API validations can be
in one common place.
--
Ticket URL: <https://code.djangoproject.com/ticket/31774#comment:5>
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/067.c629967b72b0adaefaee1867b1239fcf%40djangoproject.com.