﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13174	readonly_fields in StackedInline forms in the admin are missing the field label.	benc	Gary Wilson	"readonly_field in StackedInline forms in the admin are missing the field label.

The field value is shown but the label is missing.

The label of readonly_field in normal forms is ok.

I'm using the example from the docs about inline forms in the admin: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-objects

1. in the admin create an Author when readonly_fields is commented out so you can create a book and a title.

2. remove the comment from readonly_fields from BookInline and see that the Book title exists but the label is missing.

{{{
models.py:
class Author(models.Model):
   name = models.CharField(max_length=100)

class Book(models.Model):
   author = models.ForeignKey(Author)
   title = models.CharField(max_length=100)

admin.py:
class BookInline(admin.StackedInline):
    model = Book
    readonly_fields = ('title',)

class AuthorAdmin(admin.ModelAdmin):
    inlines = (BookInline,)

admin.site.register(Author, AuthorAdmin)
}}}
"		closed	contrib.admin	1.2-beta		fixed	admin, forms, inline, label		Accepted	1	0	0	0	0	0
