Changeset 7999
- Timestamp:
- 07/19/08 17:26:46 (4 months ago)
- Files:
-
- django/trunk/docs/db-api.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/db-api.txt
r7884 r7999 2281 2281 to the file, according to your ``MEDIA_ROOT`` setting. 2282 2282 2283 .. note:: 2284 If you are using the ``upload_to`` parameter in your ``FileField``, it is 2285 only valid to call this method **after** saving the model when the field 2286 has been set. Prior to saving, the value returned will not contain the 2287 upload directory in the path. 2288 2283 2289 Note that ``ImageField`` is technically a subclass of ``FileField``, so every 2284 2290 model with an ``ImageField`` will also get this method. … … 2291 2297 according to your ``MEDIA_URL`` setting. If the value is blank, this method 2292 2298 returns an empty string. 2299 2300 .. note:: 2301 As with ``get_FOO_filename()``, if you are using the ``upload_to`` 2302 parameter on your ``FileField``, it is only valid to call this method 2303 **after** saving the model, otherwise an incorrect result will be 2304 returned. 2293 2305 2294 2306 get_FOO_size()
