1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Added a db_constraint option to ForeignKeys.

This controls whether or not a database level cosntraint is created. This is useful in a few specialized circumstances, but in general should not be used!
This commit is contained in:
Alex Gaynor
2013-02-20 11:27:32 -08:00
parent cb5545ea2d
commit b55cde054e
6 changed files with 57 additions and 8 deletions

View File

@@ -85,6 +85,9 @@ Minor features
:class:`~django.http.HttpResponsePermanentRedirect` now provide an ``url``
attribute (equivalent to the URL the response will redirect to).
* Added the :attr:`django.db.models.ForeignKey.db_constraint`
option.
Backwards incompatible changes in 1.6
=====================================