diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py index 96c5e170b..5bc5d5f8e 100644 --- a/rest_framework/renderers.py +++ b/rest_framework/renderers.py @@ -247,7 +247,7 @@ class DocumentingHTMLRenderer(BaseRenderer): serializers.EmailField: forms.EmailField, serializers.CharField: forms.CharField, serializers.BooleanField: forms.BooleanField, - serializers.PrimaryKeyRelatedField: forms.ChoiceField, + serializers.PrimaryKeyRelatedField: forms.ModelChoiceField, serializers.ManyPrimaryKeyRelatedField: forms.ModelMultipleChoiceField } diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index bc6c2e4ac..a5e089429 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -132,7 +132,7 @@