diff --git a/did/__init__.py b/did/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/did/admin.py b/did/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/did/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/did/apps.py b/did/apps.py new file mode 100644 index 0000000..8893167 --- /dev/null +++ b/did/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class DidConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "did" diff --git a/did/migrations/__init__.py b/did/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/did/models.py b/did/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/did/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/did/templates/device_web.html b/did/templates/device_web.html new file mode 100644 index 0000000..8c607d3 --- /dev/null +++ b/did/templates/device_web.html @@ -0,0 +1,171 @@ + + +
+ + +
+ {% for component_key, component_value in component.items %}
+ {% if component_key not in 'actions,type' %}
+ {% if component_key != 'serialNumber' or user.is_authenticated %}
+ {{ component_key }}: {{ component_value }}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+