#11228: FieldFile with check if file exists.
---------------------------------------------------+------------------------
          Reporter:  hersonls                      |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  SVN   
        Resolution:                                |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  1     
        Needs_docs:  1                             |   Needs_tests:  1     
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Changes (by dc):

  * needs_better_patch:  => 1
  * needs_tests:  => 1
  * needs_docs:  => 1

Comment:

 If path is stored in database and actual file not exists then data is
 corrupted and better not create workarounds but fix it immediately.

 Anyway os.path.exists will not work with non-local file systems better use
 self.storage.exists(self.name).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11228#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to