Opened 8 years ago

Closed 8 years ago

#27898 closed Bug (needsinfo)

Inheriting from AbstractBaseUser does not interpolate unique error message on field

Reported by: unho Owned by: nobody
Component: contrib.auth Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If a custom User model inherits from AbstractBaseUser instead of AbstractUser and it defines a unique field the uniqueness error message used is not correctly interpolated and is rendered as is: %(model_name)s with this %(field_label)s already exists.

Change History (2)

comment:1 by Tim Graham, 8 years ago

Could you please gave an example model and code to reproduce the problem?

comment:2 by Tim Graham, 8 years ago

Component: Uncategorizedcontrib.auth
Resolution: needsinfo
Status: newclosed
Type: UncategorizedBug
Note: See TracTickets for help on using tickets.
Back to Top