Fixed #24774 -- Made contrib.site's Site.domain field unique

This commit is contained in:
Piotr Jakimiak 2015-05-14 19:59:36 +02:00 committed by Tim Graham
parent 4c2197db32
commit 70e3e2e08e
6 changed files with 36 additions and 1 deletions

View file

@ -23,6 +23,11 @@ The sites framework is mainly based on a simple model:
The domain name associated with the Web site.
.. versionchanged:: 1.9
The ``domain`` field was set to be
:attr:`~django.db.models.Field.unique`.
.. attribute:: name
A human-readable "verbose" name for the Web site.