Django

Code

Changeset 8001

Show
Ignore:
Timestamp:
07/19/08 17:50:06 (3 months ago)
Author:
mtredinnick
Message:

Modified [7999] based on some feedback from Marty Alchin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/db-api.txt

    r7999 r8001  
    22822282 
    22832283.. 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. 
     2284    It is only valid to call this method **after** saving the model when the 
     2285    field has been set. Prior to saving, the value returned will not contain 
     2286    the upload directory (the `upload_to` parameter) in the path. 
    22882287 
    22892288Note that ``ImageField`` is technically a subclass of ``FileField``, so every 
     
    22992298 
    23002299.. 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 
     2300    As with ``get_FOO_filename()``, it is only valid to call this method 
    23032301    **after** saving the model, otherwise an incorrect result will be 
    23042302    returned.