Opened 8 years ago
Closed 21 months ago
#27505 closed Cleanup/optimization (fixed)
Error messages customization and internationalization in Paginator class
Reported by: | Anton Bazhanov | Owned by: | Marcelo Galigniana |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Sagar Gajare | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
There is no ability to change error messages raised by Paginator.validate_number method.
Change History (24)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
comment:3 by , 8 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.10 → master |
comment:4 by , 8 years ago
Patch needs improvement: | set |
---|
comment:6 by , 8 years ago
Has patch: | unset |
---|---|
Patch needs improvement: | unset |
Strings are now marked for translation. Easing customization of error messages to be done separately.
comment:7 by , 4 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:8 by , 3 years ago
Easy pickings: | set |
---|
comment:9 by , 3 years ago
Cc: | added |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:11 by , 3 years ago
Replying to Shivan Sivakumaran:
Does this still need work?
Yes, see comment:
... Easing customization of error messages to be done separately.
comment:12 by , 3 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
follow-up: 14 comment:13 by , 3 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Hi, I'm a new contributor and I'd love to give it a try
follow-up: 17 comment:14 by , 2 years ago
Replying to Pedro Magno Müller:
Hi, I'm a new contributor and I'd love to give it a try
hi are you still working on it or may i take the issue?
comment:15 by , 2 years ago
Owner: | changed from | to
---|
comment:16 by , 2 years ago
don't we have a workaround for that like directly import "PageNotAnInteger" and "EmptyPage" Exceptions directly and use them in our logic isn't it , a way to customization .?
follow-up: 18 comment:17 by , 2 years ago
Replying to Aman Pandey:
Replying to Pedro Magno Müller:
Hi, I'm a new contributor and I'd love to give it a try
hi are you still working on it or may i take the issue?
Hello, Can i take this up?
comment:18 by , 2 years ago
surReplying to Uzair Ali:
Replying to Aman Pandey:
Replying to Pedro Magno Müller:
Hi, I'm a new contributor and I'd love to give it a try
hi are you still working on it or may i take the issue?
Hello, Can i take this up?
yea sure but can we work together like ?
comment:19 by , 2 years ago
I am unsure if this customisation is needed anymore as currently, all usages of Paginator.validate_number
will have a try/except block to catch the ValueError
exception and set it as 1
.
comment:21 by , 21 months ago
Needs documentation: | set |
---|---|
Patch needs improvement: | set |
comment:22 by , 21 months ago
Needs documentation: | unset |
---|---|
Patch needs improvement: | unset |
comment:23 by , 21 months ago
Triage Stage: | Accepted → Ready for checkin |
---|
I created a PR https://github.com/django/django/pull/7578