@@ -142,7 +142,7 @@ class IsolationPointUserInfo(BaseModelMixin): |
||
142 | 142 |
|
143 | 143 |
fields = JSONField(_('fields'), default=[], blank=True, null=True, help_text='字段信息') |
144 | 144 |
|
145 |
- leave_at = models.DateTimeField(_('leave_at'), blank=True, null=True, help_text=_('离开时间')) |
|
145 |
+ leave_at = models.DateTimeField(_('leave_at'), blank=True, null=True, help_text='离开时间') |
|
146 | 146 |
|
147 | 147 |
remark = JSONField(_('remark'), default=[], blank=True, null=True, help_text='备注') |
148 | 148 |
|
@@ -191,7 +191,7 @@ class ThermometerEquipmentInfo(BaseModelMixin): |
||
191 | 191 |
sn = models.CharField(_('sn'), max_length=32, blank=True, null=True, help_text='序列号') |
192 | 192 |
|
193 | 193 |
active_status = models.IntegerField(_('active_status'), choices=ACTIVE_STATUE_TUPLE, default=OFFLINE, help_text='激活状态') |
194 |
- active_at = models.DateTimeField(_('active_at'), blank=True, null=True, help_text=_('激活时间')) |
|
194 |
+ active_at = models.DateTimeField(_('active_at'), blank=True, null=True, help_text='激活时间') |
|
195 | 195 |
|
196 | 196 |
# 用户基本信息 |
197 | 197 |
ipui_pk = models.IntegerField(_('ipui_pk'), default=0, help_text='隔离点用户录入PK') |
@@ -204,7 +204,7 @@ class ThermometerEquipmentInfo(BaseModelMixin): |
||
204 | 204 |
|
205 | 205 |
remark = models.CharField(_('remark'), max_length=255, blank=True, null=True, help_text='备注') |
206 | 206 |
|
207 |
- last_submit_at = models.DateTimeField(_('last_submit_at'), blank=True, null=True, help_text=_('上一次上报时间')) |
|
207 |
+ last_submit_at = models.DateTimeField(_('last_submit_at'), blank=True, null=True, help_text='上一次上报时间') |
|
208 | 208 |
|
209 | 209 |
eqpt_register_status = models.IntegerField(_('eqpt_register_status'), choices=REGISTER_STATUE_TUPLE, default=FAIL, help_text='设备注册状态') |
210 | 210 |
eqpt_register_result = models.TextField(_('eqpt_register_result'), blank=True, null=True, help_text='设备注册结果') |
@@ -5,9 +5,9 @@ from django.utils.translation import ugettext_lazy as _ |
||
5 | 5 |
|
6 | 6 |
|
7 | 7 |
class BaseModelMixin(models.Model): |
8 |
- status = models.BooleanField(_('status'), default=True, help_text=_('状态'), db_index=True) |
|
9 |
- created_at = models.DateTimeField(_('created_at'), auto_now_add=True, editable=True, help_text=_('创建时间')) |
|
10 |
- updated_at = models.DateTimeField(_('updated_at'), auto_now=True, editable=True, help_text=_('更新时间')) |
|
8 |
+ status = models.BooleanField(_('status'), default=True, help_text='状态', db_index=True) |
|
9 |
+ created_at = models.DateTimeField(_('created_at'), auto_now_add=True, editable=True, help_text='创建时间') |
|
10 |
+ updated_at = models.DateTimeField(_('updated_at'), auto_now=True, editable=True, help_text='更新时间') |
|
11 | 11 |
|
12 | 12 |
class Meta: |
13 | 13 |
abstract = True |