diff --git a/docs/internals/contributing/writing-code/submitting-patches.txt b/docs/internals/contributing/writing-code/submitting-patches.txt index c8de8828fe02..035eb815cbde 100644 --- a/docs/internals/contributing/writing-code/submitting-patches.txt +++ b/docs/internals/contributing/writing-code/submitting-patches.txt @@ -295,7 +295,7 @@ deprecation ends. For example:: warnings.warn( "foo() is deprecated.", category=RemovedInDjangoXXWarning, - stacklevel=django_file_prefixes(), + skip_file_prefixes=django_file_prefixes(), ) old_private_helper() ... diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt index 2f0b45ff25fb..72bee36a0875 100644 --- a/docs/ref/contrib/contenttypes.txt +++ b/docs/ref/contrib/contenttypes.txt @@ -383,7 +383,7 @@ normal field object, these examples will *not* work: >>> TaggedItem.objects.get(content_object=guido) Likewise, :class:`~django.contrib.contenttypes.fields.GenericForeignKey`\s -does not appear in :class:`~django.forms.ModelForm`\s. +do not appear in :class:`~django.forms.ModelForm`\s. Reverse generic relations -------------------------