I want to pass an argument to delete an object, that argument will be
handled by the signal.
Car.objects.get(pk=1).delete(deleted_by=someone)
models:
@receiver(post_delete, sender=Car)
def ref_person(sender, instance, **kwargs):
who_deleted = ?
How do I get this argument?
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3ed8e143-7dbd-4de1-ad6f-3b54e12cefca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.