def delete_own_comment(request, message_id):
    comment = get_object_or_404(comments.get_model(), pk=message_id,
        site__pk=settings.SITE_ID)
Allowing users to delete their own comments in Django