diff --git a/edumanage/views.py b/edumanage/views.py index 830bf7b0a4cf881a37358850c0c2fcb8a8c91671..8253219a8905cbe8a58b72f4bbb11a3c451309aa 100644 --- a/edumanage/views.py +++ b/edumanage/views.py @@ -1343,7 +1343,8 @@ def realmdataxml(request): users = 0 for inst in insts: try: - users = users + inst.institutiondetails.number_user + if inst.institutiondetails.number_user: + users = users + inst.institutiondetails.number_user except InstitutionDetails.DoesNotExist: pass nuserCountry.text = "%s" %users diff --git a/templates/edumanage/welcome.html b/templates/edumanage/welcome.html index b7a275626f3b34ba160580bb30bf08be8616f4de..eba340a250541c5220bd505190dc1fb29e1db461 100644 --- a/templates/edumanage/welcome.html +++ b/templates/edumanage/welcome.html @@ -167,7 +167,7 @@ $.get("{% url get-service-points %}", function(data){