On 12 ?.?. 2010, at 22:42, Stodge wrote:

> Short of creating my own custom FileField class, is there anyway to
> pass an optional "delete" flag to a custom file system storage?

Not AFAIK.

> I have a case where I want to delete the FileField record, but not the file.

If it were me, I would just save a copy of the file to a different directory, 
or rename it without going through Django, and then call delete on the original 
object.

But I Am A Django Noob, so others may have better suggestions for you...
Jonathan

> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to