>
> def delete_comment_by_entry(sender, instance, signal, *args, **kwargs):
> entry = instance.id
> try:
> FreeComment.objects.filter
> (object_id__exact=instance._get_pk_val()).delete()
> except (FreeComment.DoesNotExist, AssertionError):
> logger.info('free comment post delete : ' + entry)
> logger.info('free comment post delete : ' + entry.id )
>
> # connect signal
> dispatcher.connect(delete_comment_by_entry, sender=Entry, signal=
> signals.post_delete)
>
I have been making the blog system.
When I deleted the entry, I want to delete the comments in conjunction with
entry automatically.
So I try to use the signal but this is not working
but It is not working I don't know why
can you let me know a way?
Thanks a lot always.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---