From 486258744b59dce27a0593cb86d8ba67db71910a Mon Sep 17 00:00:00 2001 From: bashmak Date: Sat, 8 Apr 2017 12:22:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BC=D0=B5=D1=82=D0=BA=D1=83=20=D0=B2=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=81=20=D0=B0=D0=B1=D0=BE=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=20=D0=BE=20=D1=82=D0=BE=D0=BC=20=D1=87?= =?UTF-8?q?=D1=82=D0=BE=20=D0=B0=D0=B4=D1=80=D0=B5=D1=81=20=D1=83=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B3=D0=BE=20=D0=B4=D0=B8=D0=BD=D0=B0=D0=BC=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=B8=D0=B9,=20=D0=BF=D0=BE=20dhcp.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abonapp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abonapp/models.py b/abonapp/models.py index 8c26888..0ac7d09 100644 --- a/abonapp/models.py +++ b/abonapp/models.py @@ -401,7 +401,7 @@ class AbonRawPassword(models.Model): def abon_post_save(sender, instance, **kwargs): timeout = None - if hasattr(instance, 'opt82'): + if hasattr(instance, 'is_dhcp') and instance.is_dhcp: timeout = 3600 agent_abon = instance.build_agent_struct() if agent_abon is None: