Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#19945 closed Bug (fixed)

In the admin page word "Users" not translated.

Reported by: anonymous Owned by: matiasb
Component: Translations Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the admin page word "User" not translated.

Change History (6)

comment:1 Changed 2 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from In the admin page word "User" not translated. to In the admin page word "Users" not translated.

comment:2 Changed 2 years ago by matiasb

  • Triage Stage changed from Unreviewed to Accepted

Confirmed. This is related to the fact that the default User model inheriting from AbstractUser model is not doing the Meta class inheritance.

  • django/contrib/auth/models.py

    a b class User(AbstractUser): 
    461461
    462462    Username, password and email are required. Other fields are optional.
    463463    """
    464     class Meta:
     464    class Meta(AbstractUser.Meta):
    465465        swappable = 'AUTH_USER_MODEL'

comment:3 Changed 2 years ago by matiasb

  • Owner changed from nobody to matiasb
  • Status changed from new to assigned

comment:4 Changed 2 years ago by matiasb

  • Has patch set

Proposed pull request: https://github.com/django/django/pull/871
Tests passing with SQLite.

comment:5 Changed 2 years ago by matiasb <mbordese@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In f39fead1c37f1b6ed8772e252f96adee44447a3d:

Fixed #19945 -- Fixed default User model Meta inheritance.

Updated default User model Meta class to extend AbstractUser Meta
where translated verbose_name and verbose_name_plural are
defined.

comment:6 Changed 2 years ago by Ramiro Morales <cramm0@…>

In 03e40140ff3d9506aed1d69cd0e7f764e1c8bce9:

Merge pull request #871 from matiasb/ticket_19945

Fixed #19945 -- Fixed default User model Meta inheritance.

Note: See TracTickets for help on using tickets.
Back to Top