Hi Norbert,
this is not possible on trunk , if you are using magic-removal, you can
do it like this:

def delete(self):
        if conditionIsMet == True:
            super(ModelName, self).delete() # Call the "real" delete()
method.
        else:
            # Don't delete.
            pass

more on this here:
http://code.djangoproject.com/wiki/RemovingTheMagic#Addedamorepowerfulwayofoverridingmodelmethodsremovedhardcoded_pre_save_post_saveetc.

cheers
arthur


--~--~---------~--~----~------------~-------~--~----~
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