Ticket #13174: 12843.diff

File 12843.diff, 1003 bytes (added by ptone, 5 years ago)
  • django/contrib/admin/helpers.py

     
    140140        if not self.is_first:
    141141            attrs["class"] = "inline"
    142142        name = forms.forms.pretty_name(
    143             label_for_field(self.field, self.model_admin.model, self.model_admin)
     143            self.field
    144144        )
    145145        contents = force_unicode(escape(name)) + u":"
    146146        return mark_safe('<label%(attrs)s>%(contents)s</label>' % {
     
    232232            self.original_content_type_id = ContentType.objects.get_for_model(original).pk
    233233        self.show_url = original and hasattr(original, 'get_absolute_url')
    234234        super(InlineAdminForm, self).__init__(form, fieldsets, prepopulated_fields,
    235             readonly_fields)
     235            readonly_fields, model_admin)
    236236
    237237    def __iter__(self):
    238238        for name, options in self.fieldsets:
Back to Top