From f35c811a23a1b4ed68530659b114a7e04735ec92 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 21 Mar 2017 21:55:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B5=D0=B4=D0=B8=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=8B=20=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D1=81=20=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D1=84=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abonapp/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abonapp/models.py b/abonapp/models.py index 1490af5..9577faa 100644 --- a/abonapp/models.py +++ b/abonapp/models.py @@ -18,6 +18,7 @@ class LogicError(Exception): class AbonGroup(models.Model): title = models.CharField(max_length=127, unique=True) profiles = models.ManyToManyField(UserProfile, blank=True, related_name='abon_groups') + tariffs = models.ManyToManyField(Tariff, blank=True, related_name='tariff_groups') class Meta: db_table = 'abonent_groups' @@ -276,7 +277,7 @@ class Abon(UserProfile): nw = timezone.make_aware(datetime.now()) for at in ats: - # усдуга не активна, продолжаем + # услуга не активна, продолжаем if at.deadline is None: continue # если услуга просрочена