#4339: Override an existing file, using Model.save_FIELD_file method,
----------------------------------+-----------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian                
     Status:  new                 |            Component:  Database wrapper     
 
    Version:  SVN                 |           Resolution:                       
 
   Keywords:  FileField db        |                Stage:  Design decision 
needed
  Has_patch:  1                   |           Needs_docs:  1                    
 
Needs_tests:  0                   |   Needs_better_patch:  1                    
 
----------------------------------+-----------------------------------------
Comment (by [EMAIL PROTECTED]):

 Now I can use
 {{{
 class UserProfile(models.Model):
     avatar = models.ImageField(blank=True, upload_to='users/avatars/',
 overwrite=True)
 }}}
 
 the other use is to set explicitly overwrite to True,
 {{{
 userprofile.save_avatar_file(filename, content, overwrite=True)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4339#comment:6>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to