|
15
|
+ verbose_name = _('体温计信息')
|
|
16
|
+ verbose_name_plural = _('体温计信息')
|
|
17
|
+
|
|
18
|
+ def __unicode__(self):
|
|
19
|
+ return self.pk
|
|
20
|
+
|
|
21
|
+ @property
|
|
22
|
+ def data(self):
|
|
23
|
+ return {
|
|
24
|
+ 'thermometer_id': self.thermometer_id,
|
|
25
|
+ 'user_id': self.user_id,
|
|
26
|
+ 'macid': self.macid,
|
|
27
|
+ }
|
|
|
@@ -0,0 +1,4 @@
|
|
1
|
+from django.test import TestCase
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+# Create your tests here.
|
|
|
@@ -0,0 +1,4 @@
|
|
1
|
+from django.shortcuts import render
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+# Create your views here.
|
|
|
@@ -57,6 +57,7 @@ INSTALLED_APPS = [
|
57
|
57
|
'commands',
|
58
|
58
|
'api',
|
59
|
59
|
'account',
|
|
60
|
+ 'thermometer',
|
60
|
61
|
]
|
61
|
62
|
|
62
|
63
|
MIDDLEWARE = [
|