Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8189 closed (fixed)

FileField documentation still mentions get_<fieldname>_url

Reported by: Flavio Curella Owned by: Jacob
Component: Documentation Version: dev
Severity: 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

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 16 years ago.

Download all attachments as: .zip

Change History (4)

by Flavio Curella, 16 years ago

Attachment: model-api.diff added

comment:1 by Jacob, 16 years ago

Has patch: set
milestone: 1.0
Owner: changed from nobody to Jacob
Status: newassigned
Triage Stage: UnreviewedReady for checkin

comment:2 by Alex Gaynor, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r8335.

comment:3 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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