#23338: Warn when unique=True is set on ForeignKey --------------------------------------+------------------------------------ Reporter: funkybob | Owner: JLinden Type: New feature | Status: assigned Component: Core (System checks) | Version: master Severity: Normal | Resolution: Keywords: afraid-to-commit | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by diegoguimaraes): The patch and test are basically working, but a design decision should be made how to handle the tests violating the unique check. I think that would be helpful, if someone that knows better the System Checks could take a look. I detailed the problems in the PR .https://github.com/django/django/pull/3262 -- Ticket URL: <https://code.djangoproject.com/ticket/23338#comment:6> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.6e5446d6d8e387b5d9fadbf975bb973e%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.