Opened 7 years ago

Closed 7 years ago

Last modified 3 years ago

#8189 closed (fixed)

FileField documentation still mentions get_<fieldname>_url

Reported by: gogna 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:

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

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by gogna

comment:1 Changed 7 years ago by jacob

  • Has patch set
  • milestone set to 1.0
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to jacob
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 years ago by Alex

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r8335.

comment:3 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

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