Opened 12 years ago

Closed 12 years ago

Last modified 12 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 by anonymous, 12 years ago

Summary: In the admin page word "User" not translated.In the admin page word "Users" not translated.

comment:2 by matiasb, 12 years ago

Triage Stage: UnreviewedAccepted

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 by matiasb, 12 years ago

Owner: changed from nobody to matiasb
Status: newassigned

comment:4 by matiasb, 12 years ago

Has patch: set

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

comment:5 by matiasb <mbordese@…>, 12 years ago

Resolution: fixed
Status: assignedclosed

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 by Ramiro Morales <cramm0@…>, 12 years ago

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