diff --git a/rest_framework/templates/rest_framework/horizontal/radio.html b/rest_framework/templates/rest_framework/horizontal/radio.html index efca2883e..cabd09d2b 100644 --- a/rest_framework/templates/rest_framework/horizontal/radio.html +++ b/rest_framework/templates/rest_framework/horizontal/radio.html @@ -1,4 +1,5 @@ {% load i18n %} +{% trans "None" as none_choice %}
{% if field.label %} @@ -9,7 +10,7 @@ {% if field.allow_null or field.allow_blank %} {% endif %} {% for key, text in field.choices.items %} @@ -23,7 +24,7 @@
{% endif %} diff --git a/rest_framework/templates/rest_framework/inline/radio.html b/rest_framework/templates/rest_framework/inline/radio.html index 1915f4f84..b65016715 100644 --- a/rest_framework/templates/rest_framework/inline/radio.html +++ b/rest_framework/templates/rest_framework/inline/radio.html @@ -1,7 +1,18 @@ +{% load i18n %} +{% trans "None" as none_choice %} +
{% if field.label %} {% endif %} + {% if field.allow_null or field.allow_blank %} +
+ +
+ {% endif %} {% for key, text in field.choices.items %}