Admin should not use verbose_name_plural for OneToOne field
Do something like the following:
class Foo(Model):
i = IntegerField()
bar = OneToOneField("Bar")
class FooInline(admin.TabularInline):
model = Foo
class Bar(Model):
i = Integerfield()
class BarAdmin(admin.ModelAdmin):
inlines = [FooInline]
admin.site.register(Foo, FooAdmin)
admin.site.register(Bar)
When you edit a Bar in the admin, the formset section for entering a Foo will be labeled "Foos" (plural). Since it's a one-to-one mapping, it should be labeled "Foo" (singular).
Attachments
(1)
- 18549.diff
(1.9 KB
) - added by harph 13 years ago.
- Fixed adding two conditions to the stacked.html and tabular.html templates.
Download all attachments as:
.zip
Change History
(17)
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to vanessagomes
|
| Has patch: |
set
|
| Version: |
1.4 → master
|
| Needs tests: |
set
|
| Patch needs improvement: |
set
|
| Owner: |
vanessagomes removed
|
| Status: |
assigned → new
|
| Owner: |
set to Tim McCurrach
|
| Status: |
new → assigned
|
| Needs tests: |
unset
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Fixed adding two conditions to the stacked.html and tabular.html templates.