#18974: Deprecate models.permalink
----------------------------------------------+--------------------
Reporter: dstufft | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
The permalink decorator should be deprecated and ultimately removed.
It was introduced to solve the problem of having to hardcode urls into
get_absolute_url. However it violates one of the major rules of good
decorators in that in forces the function signature to change in order to
deal with the fact it's been decorated. Additionally it does not provide
any useful functionality over using reverse() directly within the body of
get_absolute_url.
--
Ticket URL: <https://code.djangoproject.com/ticket/18974>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.