Commit f545b59c authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

added small checks

parent 450099e1
......@@ -1343,6 +1343,7 @@ def realmdataxml(request):
users = 0
for inst in insts:
try:
if inst.institutiondetails.number_user:
users = users + inst.institutiondetails.number_user
except InstitutionDetails.DoesNotExist:
pass
......
......@@ -167,7 +167,7 @@ $.get("{% url get-service-points %}", function(data){
<ul class="nav">
<li>
{% load tolocale %}
<a class="brand" href="{% url manage %}" style="font-size: 14px;">{% tolocale institution LANGUAGE_CODE %}</a>
<a class="brand" href="{% url manage %}" style="font-size: 14px;">{% if institution_exists %}{% tolocale institution LANGUAGE_CODE %}{% else %}Management{% endif %}</a>
</li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment