Code

Opened 17 months ago

Closed 16 months ago

Last modified 16 months 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.

Attachments (0)

Change History (6)

comment:1 Changed 17 months 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 17 months 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.

--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -461,7 +461,7 @@ class User(AbstractUser):
 
     Username, password and email are required. Other fields are optional.
     """
-    class Meta:
+    class Meta(AbstractUser.Meta):
         swappable = 'AUTH_USER_MODEL'

comment:3 Changed 17 months ago by matiasb

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

comment:4 Changed 17 months ago by matiasb

  • Has patch set

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

comment:5 Changed 16 months 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 16 months ago by Ramiro Morales <cramm0@…>

In 03e40140ff3d9506aed1d69cd0e7f764e1c8bce9:

Merge pull request #871 from matiasb/ticket_19945

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.