diff --git a/device/templates/tabs/dpps.html b/device/templates/tabs/dpps.html
new file mode 100644
index 0000000..cd45a19
--- /dev/null
+++ b/device/templates/tabs/dpps.html
@@ -0,0 +1,18 @@
+{% load i18n %}
+
+
+
{% trans 'List of dpps' %}
+
+ {% for d in dpps %}
+
+ {% endfor %}
+
+
diff --git a/did/views.py b/did/views.py
index df31104..3548ff4 100644
--- a/did/views.py
+++ b/did/views.py
@@ -137,15 +137,15 @@ class PublicDeviceWebView(TemplateView):
dev = Build(d.doc, None, check=True)
doc = dev.build.get_doc()
ev = json.dumps(doc)
- phid = dev.get_signature(doc)
+ phid = dev.sign(ev)
dpp = "{}:{}".format(self.pk, phid)
rr = {
'dpp': dpp,
'document': ev,
'algorithm': ALGORITHM,
'manufacturer DPP': '',
- 'device': dev.device,
- 'components': dev.components
+ 'device': dev.build.device,
+ 'components': dev.build.components
}
tmpl = dpp_tmpl.copy()