> for instance in instances: > if not instance in self.deleted_objects: > instance.modified_by = request.user > instance.save() > > ... but that didn't do anything.
Shouldn't that be: if instance not in self.deleted_objects: I haven't tested this, but I think that will end up looking for False (the 'not' applying to 'instance' rather than the 'in' operation) in self.deleted_objects, which means saving would be broken entirely. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUabE3ZjXaYjZFi7fui6J7%2BXTNLsyoFomOBzVQeWqQvZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.