Use consistent labels in admin.

fix_request_path_info
Ben Konrath 2014-08-04 15:05:13 +02:00
parent a2f12177ad
commit ec5ce49d81
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class PolymorphicModelChoiceForm(forms.Form):
The default form for the ``add_type_form``. Can be overwritten and replaced. The default form for the ``add_type_form``. Can be overwritten and replaced.
""" """
#: Define the label for the radiofield #: Define the label for the radiofield
type_label = _("Type") type_label = _('Type')
ct_id = forms.ChoiceField(label=type_label, widget=AdminRadioSelect(attrs={'class': 'radiolist'})) ct_id = forms.ChoiceField(label=type_label, widget=AdminRadioSelect(attrs={'class': 'radiolist'}))
@ -69,7 +69,7 @@ class PolymorphicChildModelFilter(admin.SimpleListFilter):
An admin list filter for the PolymorphicParentModelAdmin which enables An admin list filter for the PolymorphicParentModelAdmin which enables
filtering by its child models. filtering by its child models.
""" """
title = _('Content type') title = _('Type')
parameter_name = 'polymorphic_ctype' parameter_name = 'polymorphic_ctype'
def lookups(self, request, model_admin): def lookups(self, request, model_admin):