Ticket #13174: 12843.diff
File 12843.diff, 1003 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/helpers.py
140 140 if not self.is_first: 141 141 attrs["class"] = "inline" 142 142 name = forms.forms.pretty_name( 143 label_for_field(self.field, self.model_admin.model, self.model_admin)143 self.field 144 144 ) 145 145 contents = force_unicode(escape(name)) + u":" 146 146 return mark_safe('<label%(attrs)s>%(contents)s</label>' % { … … 232 232 self.original_content_type_id = ContentType.objects.get_for_model(original).pk 233 233 self.show_url = original and hasattr(original, 'get_absolute_url') 234 234 super(InlineAdminForm, self).__init__(form, fieldsets, prepopulated_fields, 235 readonly_fields )235 readonly_fields, model_admin) 236 236 237 237 def __iter__(self): 238 238 for name, options in self.fieldsets: