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 @@
{{ field.label_tag|add_class:"control-label" }}
- {{ field|add_class:"input-xxlarge" }} + {{ field|add_class:"input-xlarge" }} {{ field.help_text }} {{ field.errors|add_class:"help-block" }}
@@ -158,7 +158,7 @@
{{ field.label_tag|add_class:"control-label" }}
- {{ field|add_class:"input-xxlarge" }} + {{ field|add_class:"input-xlarge" }} {{ field.help_text }} {{ field.errors|add_class:"help-block" }}