add - url & checksum in device version
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.0 on 2025-11-08 12:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pos_device', '0077_remove_device_city_remove_device_province'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='deviceversion',
|
||||
name='checksum',
|
||||
field=models.CharField(max_length=350, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='deviceversion',
|
||||
name='url',
|
||||
field=models.TextField(blank=True, max_length=2000, null=True),
|
||||
),
|
||||
]
|
||||
@@ -112,6 +112,8 @@ class DeviceVersion(BaseModel):
|
||||
description = models.TextField(null=True)
|
||||
enable = models.BooleanField(default=True)
|
||||
remove = models.BooleanField(default=False)
|
||||
url = models.TextField(null=True, blank=True, max_length=2000)
|
||||
checksum = models.CharField(max_length=350, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return f'Version: {self.name}-{self.device.serial}'
|
||||
|
||||
Reference in New Issue
Block a user