Skip to content

Commit

Permalink
[1.7.x] Clarified contrib.contenttypes.generic deprecation; refs #19774.
Browse files Browse the repository at this point in the history
Backport of 737cd4f from stable/1.7.x
  • Loading branch information
timgraham committed Jan 18, 2015
1 parent eea66a6 commit 4df91d0
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions docs/ref/contrib/contenttypes.txt
Expand Up @@ -300,10 +300,11 @@ model:
is ``True``. This mirrors the ``for_concrete_model`` argument to is ``True``. This mirrors the ``for_concrete_model`` argument to
:meth:`~django.contrib.contenttypes.models.ContentTypeManager.get_for_model`. :meth:`~django.contrib.contenttypes.models.ContentTypeManager.get_for_model`.


.. versionchanged:: 1.7 .. deprecated:: 1.7


This class used to be defined in ``django.contrib.contenttypes.generic``. This class used to be defined in ``django.contrib.contenttypes.generic``.

Support for importing from this old location will be removed in Django
1.9.


.. admonition:: Primary key type compatibility .. admonition:: Primary key type compatibility


Expand Down Expand Up @@ -369,9 +370,11 @@ Reverse generic relations


.. class:: GenericRelation .. class:: GenericRelation


.. versionchanged:: 1.7 .. deprecated:: 1.7


This class used to be defined in ``django.contrib.contenttypes.generic``. This class used to be defined in ``django.contrib.contenttypes.generic``.
Support for importing from this old location will be removed in Django
1.9.


.. attribute:: related_query_name .. attribute:: related_query_name


Expand Down Expand Up @@ -496,9 +499,11 @@ The :mod:`django.contrib.contenttypes.forms` module provides:


.. class:: BaseGenericInlineFormSet .. class:: BaseGenericInlineFormSet


.. versionchanged:: 1.7 .. deprecated:: 1.7


This class used to be defined in ``django.contrib.contenttypes.generic``. This class used to be defined in ``django.contrib.contenttypes.generic``.
Support for importing from this old location will be removed in Django
1.9.


.. function:: generic_inlineformset_factory(model, form=ModelForm, formset=BaseGenericInlineFormSet, ct_field="content_type", fk_field="object_id", fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None, validate_max=False, for_concrete_model=True, min_num=None, validate_min=False) .. function:: generic_inlineformset_factory(model, form=ModelForm, formset=BaseGenericInlineFormSet, ct_field="content_type", fk_field="object_id", fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None, validate_max=False, for_concrete_model=True, min_num=None, validate_min=False)


Expand All @@ -517,9 +522,11 @@ The :mod:`django.contrib.contenttypes.forms` module provides:
:class:`~django.contrib.contenttypes.fields.GenericForeignKey.for_concrete_model` :class:`~django.contrib.contenttypes.fields.GenericForeignKey.for_concrete_model`
argument on ``GenericForeignKey``. argument on ``GenericForeignKey``.


.. versionchanged:: 1.7 .. deprecated:: 1.7


This function used to be defined in ``django.contrib.contenttypes.generic``. This function used to be defined in ``django.contrib.contenttypes.generic``.
Support for importing from this old location will be removed in Django
1.9.


.. versionchanged:: 1.7 .. versionchanged:: 1.7


Expand Down Expand Up @@ -559,16 +566,20 @@ information.
The name of the integer field that represents the ID of the related The name of the integer field that represents the ID of the related
object. Defaults to ``object_id``. object. Defaults to ``object_id``.


.. versionchanged:: 1.7 .. deprecated:: 1.7


This class used to be defined in ``django.contrib.contenttypes.generic``. This class used to be defined in ``django.contrib.contenttypes.generic``.
Support for importing from this old location will be removed in Django
1.9.


.. class:: GenericTabularInline .. class:: GenericTabularInline
.. class:: GenericStackedInline .. class:: GenericStackedInline


Subclasses of :class:`GenericInlineModelAdmin` with stacked and tabular Subclasses of :class:`GenericInlineModelAdmin` with stacked and tabular
layouts, respectively. layouts, respectively.


.. versionchanged:: 1.7 .. deprecated:: 1.7


These classes used to be defined in ``django.contrib.contenttypes.generic``. These classes used to be defined in ``django.contrib.contenttypes.generic``.
Support for importing from this old location will be removed in Django
1.9.

0 comments on commit 4df91d0

Please sign in to comment.