Intword and intabr expansion and intword_internal api exposure
|Reported by:||James Reynolds||Owned by:||James Reynolds|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Created a pull requests located here: https://github.com/django/django/pull/578
This patch does three things:
- Changes internal API for intword and adds an optional argument for precision. Default is 1, which was previous hardcoded behavior.
- Adds a new filter called "intabr" that does the same as the above, except returns the converted number with an abbreviation.
- Exposes an API for developers to create there own word conversion type filters without needing to recreate the wheel.
Hopefully I didn't screw up the pull request process - this is the first one I've attempted.
Change History (6)
comment:1 Changed 4 years ago by
|Owner:||changed from nobody to James Reynolds|
|Patch needs improvement:||unset|
comment:2 follow-up: 4 Changed 4 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Accepted|