I have a model [http://paste.e-scribe.com/2236/] which, after I
populate with a few items (with different content types, object id's,
different everything...), I'll call .delete() on an instance of *one*
of them and it deletes *all* of them. It only fires one signal, and
thus, the file field's delete_file method does not get called either. I
have dir()'d an instance of MediaObject, and it does not have anything
like a mediaobject_set so I do not see why it's deleting *all*
MediaObjects. See below:

>>> MediaObject.objects.all()
[]
>>> # i add a few through the admin interface
>>> MediaObject.objects.all()
[<MediaObject: Buddy_2.JPG>, <MediaObject: african_americans.psd>]
>>> f=MediaObject.objects.all()[0]
>>> f
<MediaObject: Buddy_2.JPG>
>>> f.delete()
>>> MediaObject.objects.all()
[]

This is *very* undesired because all I want deleted is one MediaObject.
MediaObjects are in no way [supposed to be] related to one another.

Any help is appreciated.

Thanks,
Sam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to