[Django] #18549: Admin should not use verbose_name_plural for OneToOne field

37 views
Skip to first unread message

Django

unread,
Jul 1, 2012, 12:44:50 PM7/1/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+--------------------
Reporter: RoySmith | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
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).

--
Ticket URL: <https://code.djangoproject.com/ticket/18549>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 1, 2012, 5:55:48 PM7/1/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+------------------------------------
Reporter: RoySmith | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by julien):

* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:1>

Django

unread,
Jul 1, 2012, 8:03:35 PM7/1/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by vanessagomes):

* owner: nobody => vanessagomes


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:2>

Django

unread,
Nov 4, 2012, 7:08:52 PM11/4/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new
Component: contrib.admin | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by harph):

* has_patch: 0 => 1
* version: 1.4 => master


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:3>

Django

unread,
Nov 4, 2012, 7:09:03 PM11/4/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by harph):

* cc: harph (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:4>

Django

unread,
Nov 4, 2012, 10:41:11 PM11/4/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------

Comment (by harph):

I submitted a pull request. This is the url:
https://github.com/django/django/pull/498

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:5>

Django

unread,
Nov 5, 2012, 3:05:04 AM11/5/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------

Comment (by claudep):

Note that you are hard-coding usage of plural for 0 items, which is not
true for all languages. However, I'm not sure there is a better solution
i18n-wise (as using blocktrans will only partially solve it and add a non-
sense translatable string to po files).

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:6>

Django

unread,
Dec 26, 2012, 7:43:38 AM12/26/12
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by anonymous):

* cc: 4glitch@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:7>

Django

unread,
Oct 17, 2013, 9:38:37 AM10/17/13
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: RoySmith | Owner: vanessagomes
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by timo):

* needs_better_patch: 0 => 1
* needs_tests: 0 => 1


Comment:

This needs tests, ideally adding `max_num=1` to an existing tabular and
stacked inline and verifying the <h2> text. The existing patch also causes
some test failures due to the added whitespace.

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:8>

Django

unread,
Nov 24, 2020, 12:41:08 AM11/24/20
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+----------------------------------------
Reporter: Roy Smith | Owner: vanessagomes
Type: Bug | Status: assigned

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by Mariusz Felisiak):

* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:9>

Django

unread,
Nov 24, 2020, 12:41:16 AM11/24/20
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+------------------------------------
Reporter: Roy Smith | Owner: (none)
Type: Bug | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: vanessagomes => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:10>

Django

unread,
Jan 14, 2021, 8:38:04 PM1/14/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+-----------------------------------------
Reporter: Roy Smith | Owner: Tim McCurrach
Type: Bug | Status: assigned

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------------------------
Changes (by Tim McCurrach):

* owner: (none) => Tim McCurrach


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:11>

Django

unread,
Jan 15, 2021, 10:15:11 AM1/15/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------+-----------------------------------------
Reporter: Roy Smith | Owner: Tim McCurrach
Type: Bug | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------------------------
Changes (by Tim McCurrach):

* needs_better_patch: 1 => 0
* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:12>

Django

unread,
Jan 18, 2021, 2:17:27 AM1/18/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------------+-------------------------------------

Reporter: Roy Smith | Owner: Tim
| McCurrach
Type: Bug | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:13>

Django

unread,
Jan 18, 2021, 3:55:54 AM1/18/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------------+-------------------------------------
Reporter: Roy Smith | Owner: Tim
| McCurrach
Type: Bug | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"0aff3fd7110d1bd431a35bb28d8688693b98d886" 0aff3fd7]:
{{{
#!CommitTicketReference repository=""
revision="0aff3fd7110d1bd431a35bb28d8688693b98d886"
Fixed #18549 -- Fixed heading for inlines with a OneToOneField.

Used verbose_name instead of verbose_name_plural.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:15>

Django

unread,
Jan 18, 2021, 3:55:54 AM1/18/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------------+-------------------------------------
Reporter: Roy Smith | Owner: Tim
| McCurrach
Type: Bug | Status: assigned

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"13409a0c0db0ae322d58a1fceef678f8bca067fb" 13409a0c]:
{{{
#!CommitTicketReference repository=""
revision="13409a0c0db0ae322d58a1fceef678f8bca067fb"
Refs #18549 -- Added test for heading of foreign key inlines.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:14>

Django

unread,
Jan 18, 2021, 3:57:19 AM1/18/21
to django-...@googlegroups.com
#18549: Admin should not use verbose_name_plural for OneToOne field
-------------------------------------+-------------------------------------
Reporter: Roy Smith | Owner: Tim
| McCurrach
Type: Bug | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"a91bf80459d6674dd8c6a182d0f6296d50be0361" a91bf804]:
{{{
#!CommitTicketReference repository=""
revision="a91bf80459d6674dd8c6a182d0f6296d50be0361"
[3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.

Used verbose_name instead of verbose_name_plural.

Backport of 0aff3fd7110d1bd431a35bb28d8688693b98d886 from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18549#comment:16>

Reply all
Reply to author
Forward
0 new messages