Opened 9 years ago
Closed 9 years ago
#25567 closed Cleanup/optimization (fixed)
Remove obsolete MEDIA_URL/STATIC_URL compatibility condition
Reported by: | Claude Paroz | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The absolute_path
method of the forms Media
class still contains a compatibility condition that uses settings.MEDIA_URL
to construct the path when settings.STATIC_URL
is not set. This was introduced in Django 1.3 as a backwards compatibility measure when the media/static separation was introduced.
I think this is now largely obsolete and should be removed.
Change History (2)
comment:1 by , 9 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In f59a0401: