Browse Source

FIXBUG

devel
http 9 years ago
parent
commit
0a598679b3
  1. 7
      abonapp/views.py

7
abonapp/views.py

@ -731,9 +731,10 @@ def charts(request, gid, uid):
charts_data = StatElem.objects.chart(abon.ip_address)
abontariff = abon.active_tariff()
high = abontariff.speedIn + abontariff.speedOut
if high > 100:
high = 100
if abontariff is not None:
high = abontariff.speedIn + abontariff.speedOut
if high > 100:
high = 100
except models.Abon.DoesNotExist:
messages.error(request, _('Abon does not exist'))

Loading…
Cancel
Save