upd field

This commit is contained in:
zakhy 2025-02-27 10:26:44 +07:00
parent 19d94ff516
commit b624c20760
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.25 on 2025-02-27 03:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workerslocation', '0005_delete_voicecall'),
]
operations = [
migrations.AlterField(
model_name='workerslocation',
name='update_time',
field=models.DateTimeField(blank=True, null=True, verbose_name='Время связи'),
),
]

View File

@ -15,7 +15,7 @@ class WorkersLocation(models.Model):
radius = models.DecimalField(
default=0.0, max_digits=9, decimal_places=6, verbose_name="Радиус"
)
update_time = models.DateTimeField(auto_now=True, verbose_name="Время связи")
update_time = models.DateTimeField(verbose_name="Время связи", blank=True, null=True)
active = models.BooleanField(default=True)
def __str__(self):