models.permalink() does not pass through the url prefix
|Reported by:||hjust||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
The permalink() decorator does not allow for passing a customized prefix to the reverse() function. The attached patch changes that behavior by allowing an additional positional parameter to be passed to the reverse function.
I originally wanted to use that feature to generate fully qualified URLs to switch between HTTPS and plain HTTP.
Change History (3)
Changed 5 years ago by hjust
comment:1 Changed 5 years ago by SmileyChris
- Needs documentation set
- Needs tests set
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed