diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-08 11:24:13 +0800 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-08 11:25:23 +0800 |
| commit | 70ec4d776ef0e68960ccee21476b8654e9399f53 (patch) | |
| tree | cd4b68aad597845ab8542cb2f2f8a646f75d3b40 /docs/ref/checks.txt | |
| parent | 219d928852c256a81d09dbaa29ed4cec42d2fdfa (diff) | |
Fixed #22034 -- Added a specific set of relation checks for GenericInlineModelAdmin.
Thanks to jwa for the report.
Diffstat (limited to 'docs/ref/checks.txt')
| -rw-r--r-- | docs/ref/checks.txt | 14 |
1 files changed, 13 insertions, 1 deletions
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 ``<field name>``, because it is the foreign key to the parent model ``%s.%s``. -* **admin.E202**: ``<model>`` has more than one ForeignKey to ``<parent model>``. +* **admin.E202**: ``<model>`` has no ForeignKey to ``<parent model>``./``<model>`` has more than one ForeignKey to ``<parent model>``. * **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 ``<label>``, which is not a field on ``<model>``. +* **admin.E302**: 'ct_fk_field' references ``<label>``, which is not a field on ``<model>``. +* **admin.E303**: ``<model>`` has no GenericForeignKey. +* **admin.E304**: ``<model>`` has no GenericForeignKey using content type field ``<field name>`` and object ID field ``<field name>``. + Auth ---- |
