Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#8189 closed (fixed)

FileField documentation still mentions get_<fieldname>_url

Reported by: Flavio Curella Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


model-api.txt still reads:

All that will be stored in your database is a path to the file (relative to MEDIA_ROOT). You’ll most likely want to use the convenience get_<fieldname>_url function provided by Django. For example, if your ImageField is called mug_shot, you can get the absolute URL to your image in a template with {{ object.get_mug_shot_url }}.

where it should mentions object.<fieldname>.url

Attachments (1)

model-api.diff (1.5 KB) - added by Flavio Curella 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Flavio Curella

Attachment: model-api.diff added

comment:1 Changed 8 years ago by Jacob

Has patch: set
milestone: 1.0
Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to Jacob
Patch needs improvement: unset
Status: newassigned
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 8 years ago by Alex Gaynor

Resolution: fixed
Status: assignedclosed

Fixed in r8335.

comment:3 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top