Skip to content

Commit

Permalink
Adde two "versionadded" markers, thanks to mYk for noticing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaynor committed Mar 7, 2013
1 parent bbbd698 commit 1b81f32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ref/models/fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,8 @@ define the details of how the relation works.

.. attribute:: ForeignKey.db_constraint

.. versionadded:: 1.6

Controls whether or not a constraint should be created in the database for
this foreign key. The default is ``True``, and that's almost certainly what
you want; setting this to ``False`` can be very bad for data integrity.
Expand Down Expand Up @@ -1229,6 +1231,8 @@ that control how the relationship functions.

.. attribute:: ManyToManyField.db_constraint

.. versionadded:: 1.6

Controls whether or not constraints should be created in the database for
the foreign keys in the intermediary table. The default is ``True``, and
that's almost certainly what you want; setting this to ``False`` can be
Expand Down

0 comments on commit 1b81f32

Please sign in to comment.