diff --git a/manager/templates/manager/index.html b/manager/templates/manager/index.html index b8df6f0..8e527d7 100644 --- a/manager/templates/manager/index.html +++ b/manager/templates/manager/index.html @@ -24,10 +24,10 @@ {% for device in devices %} -
 
{{ device.serial }}
+
 
{{ device.serial }}
{% if device.name %}{{ device.name }}{% endif %} {{ device.network }} -
{% if device.curip %}{{ device.curip }} (at {{ device.lasttime }}){% endif %}
+
{% if device.curip %}{{ device.curip }} (at {{ device.lasttime }}){% endif %}
{% if user.is_staff %} {% endif %}{% if user.is_superuser %} {% endif %} {% endfor %} @@ -51,7 +51,7 @@ {% for wifi in wifis %} - {{ wifi.serial }} +
{{ wifi.serial }}
{{ wifi.ssid }} {% if user.is_staff %} {% endif %} @@ -77,7 +77,7 @@ {% for auser in users %} - {% if auser.is_staff %}{% endif %}{{ auser.username }}{% if auser.is_staff %}{% endif %} +
{% if auser.is_staff %}{% endif %}{{ auser.username }}{% if auser.is_staff %}{% endif %}
{% if auser.is_staff %}{% endif %}{{ auser.first_name }} {{ auser.last_name }}{% if auser.is_staff %}{% endif %} diff --git a/manager/views.py b/manager/views.py index 08fd3ce..26d23c0 100644 --- a/manager/views.py +++ b/manager/views.py @@ -268,6 +268,9 @@ def devices(request): wifis.add(wifi) if user.is_staff: for orgauser in User.objects.filter(organization=organization): + orgauser.organizations = set() + for orga in Organization.objects.filter(users=orgauser): + orgauser.organizations.add(orga) users.add(orgauser) return render(request, "manager/index.html", diff --git a/vpnmanager/settings.py b/vpnmanager/settings.py index cffad25..34aee4a 100644 --- a/vpnmanager/settings.py +++ b/vpnmanager/settings.py @@ -7,7 +7,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '=go8&h#^kh6ksr11e2z-@4qqd6t%63$x#-!s#l_yhw@oyanrys' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = ["admin360.kumi.host"]