bashmak 9 years ago
parent
commit
b74c5c0200
  1. 4
      abonapp/models.py
  2. 2
      dialing_app/models.py

4
abonapp/models.py

@ -8,7 +8,7 @@ from agent import Transmitter, AbonStruct, TariffStruct, NasFailedResult, NasNet
from tariff_app.models import Tariff
from accounts_app.models import UserProfile
from mydefs import MyGenericIPAddressField, ip2int, LogicError, ip_addr_regex
from djing import settings
from django.conf import settings
class AbonGroup(models.Model):
@ -226,7 +226,7 @@ class Abon(UserProfile):
return
abon_tariff = self.active_tariff()
if abon_tariff is None:
agent_trf = TariffStruct()
agent_trf = None
else:
trf = abon_tariff.tariff
agent_trf = TariffStruct(trf.id, trf.speedIn, trf.speedOut)

2
dialing_app/models.py

@ -1,6 +1,6 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from djing import settings
from django.conf import settings
class AsteriskCDR(models.Model):

Loading…
Cancel
Save