Attached Image
To reproduce:
{{{
models.py
from django.db import models
class Foo(models.Model):
title = models.CharField(max_length=128)
class Meta:
verbose_name = "Foo"
verbose_name_plural = "Foo"
def __str__(self):
pass
class Bar(models.Model):
title = models.CharField(max_length=128)
foo = models.ForeignKey(Foo)
class Meta:
verbose_name = "Bar"
verbose_name_plural = "Bars"
def __str__(self):
return self.title
}}}
{{{
admin.py
from django.contrib import admin
from django import forms
from . import models
class BarInlineForm(forms.ModelForm):
title = forms.CharField(max_length=128)
class Meta:
model = models.Bar
fields = ('title',)
class BarInline(admin.TabularInline):
model = models.Bar
form = BarInlineForm
extra = 3
class FooAdmin(admin.ModelAdmin):
inlines = [BarInline]
admin.site.register(models.Foo, FooAdmin)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24976>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Screenshot from 2015-06-12 19:29:22.png" added.
Screenshot of admin page
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* easy: 1 => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24976#comment:1>
* owner: nobody => matiasb
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24976#comment:2>
* has_patch: 0 => 1
Comment:
Pull request created: https://github.com/django/django/pull/5403
All tests passing for SQLite.
--
Ticket URL: <https://code.djangoproject.com/ticket/24976#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"12aeed8c949925488a36f0a3b3bf25dfc9407cbf" 12aeed8]:
{{{
#!CommitTicketReference repository=""
revision="12aeed8c949925488a36f0a3b3bf25dfc9407cbf"
Fixed #24976 -- Fixed missing form label in tabular inline.
If the model form had a form field specified, the label rendered
as "None".
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24976#comment:4>