fix: 移除LabelTemplate不必要的字段
This commit is contained in:
parent
96f5133152
commit
43b2a4c7f7
|
|
@ -22,9 +22,6 @@ class LabelTemplate(BaseModel):
|
||||||
name = models.TextField("名称")
|
name = models.TextField("名称")
|
||||||
commands = models.JSONField("指令模板", default=list, blank=True)
|
commands = models.JSONField("指令模板", default=list, blank=True)
|
||||||
process_json = models.JSONField("工序", default=list, blank=True)
|
process_json = models.JSONField("工序", default=list, blank=True)
|
||||||
coder_ip = models.GenericIPAddressField("打码器IP", null=True, blank=True)
|
|
||||||
coder_port = models.PositiveIntegerField("打码器端口", default=3100)
|
|
||||||
coder_field = models.CharField("打码器用户区名", max_length=32, default="1")
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def gen_commands(cls, label_template, label_template_name, tdata):
|
def gen_commands(cls, label_template, label_template_name, tdata):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue