From 70ec4d776ef0e68960ccee21476b8654e9399f53 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 8 Mar 2014 11:24:13 +0800 Subject: Fixed #22034 -- Added a specific set of relation checks for GenericInlineModelAdmin. Thanks to jwa for the report. --- docs/ref/checks.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 9262a461c5..f7c2e721cb 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -199,11 +199,23 @@ The following checks are performed on any inline on a :class:`~django.contrib.admin.ModelAdmin`. * **admin.E201**: Cannot exclude the field ````, because it is the foreign key to the parent model ``%s.%s``. -* **admin.E202**: ```` has more than one ForeignKey to ````. +* **admin.E202**: ```` has no ForeignKey to ````./```` has more than one ForeignKey to ````. * **admin.E203**: The value of ``extra`` must be an integer. * **admin.E204**: The value of ``max_num`` must be an integer. * **admin.E205**: The value of ``formset`` must inherit from ``BaseModelFormSet``. +GenericInlineModelAdmin +~~~~~~~~~~~~~~~~~~~~~~~ + +The following checks are performed on any +:class:`~django.contrib.contenttypes.admin.GenericInlineModelAdmin` that is +registered as an inline on a :class:`~django.contrib.admin.ModelAdmin`. + +* **admin.E301**: 'ct_field' references ``