#31583: Extend deferred unique constraint support to OneToOneField -------------------------------------+------------------------------------- Reporter: BorisZZZ | Owner: nobody Type: New feature | Status: new Component: Database layer | Version: dev (models, ORM) | Severity: Normal | Resolution: Keywords: DEFERRED | Triage Stage: | Someday/Maybe Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Petr Přikryl): I think it would be quite easy. Here we could pass `deferrable` argument based on `new_field.defer` value: https://github.com/django/django/blob/4.0/django/db/backends/base/schema.py#L810 https://github.com/django/django/blob/4.0/django/db/backends/base/schema.py#L1245 -- Ticket URL: <https://code.djangoproject.com/ticket/31583#comment:4> 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.31b0e8f19e99ecfb3f5c82cfaa6c9991%40djangoproject.com.