From e917680144bcd7d358dba65af15ca5d6db1d6416 Mon Sep 17 00:00:00 2001 From: Fabian Faessler Date: Sun, 29 Sep 2013 20:30:10 +0200 Subject: [PATCH] post_delete fix --- nsupdate/main/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index 0a188a7..0d6aec4 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -3,7 +3,7 @@ from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.conf import settings -from django.db.models.signals import post_save +from django.db.models.signals import post_delete from django.contrib.auth.hashers import make_password from main import dnstools @@ -96,4 +96,4 @@ def post_delete_host(sender, **kwargs): obj = kwargs['instance'] dnstools.delete(obj.get_fqdn()) -post_save.connect(post_delete_host, sender=Host) +post_delete.connect(post_delete_host, sender=Host)