That's basically all I've done unless I can find a cleaner solution. I copy the files elsewhere, delete the records and then copy the files back.
On Oct 13, 2:13?am, Jonathan Barratt <jonathan.barr...@knifeict.com> wrote: > On 12 ?.?. 2010, at 22:42,Stodgewrote: > > > 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 > > athttp://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.