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 , 8 years ago
comment:2 by , 8 years ago
Component: | Uncategorized → contrib.auth |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
Type: | Uncategorized → Bug |
Note:
See TracTickets
for help on using tickets.
Could you please gave an example model and code to reproduce the problem?