Add support for UniqueConstraint(nulls_distinct=False)

XMLWordPrintableJSON

    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      By default, model field unique constraints treat NULL values as distinct from each other. That is, you can store multiple documents a NULL value. This is consistent with most SQL databases.

      If a developer wishes to only allow one document with a NULL value, they should be able to use django.db.models.UniqueConstraint(nulls_distinct=False).

            Assignee:
            Tim Graham
            Reporter:
            Tim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: