сделал поле street nullable
This commit is contained in:
parent
6d714bee73
commit
58b641c1dc
@ -24,10 +24,11 @@ class TagDate(models.Model):
|
||||
x = models.FloatField(default=0.0, help_text="", verbose_name="x") # noqa: VNE001
|
||||
y = models.FloatField(default=0.0, help_text="", verbose_name="y") # noqa: VNE001
|
||||
z = models.FloatField(default=0.0, help_text="", verbose_name="z") # noqa: VNE001
|
||||
street = models.BooleanField(default=False, verbose_name="Уличные")
|
||||
street = models.BooleanField(default=False, verbose_name="Уличные", null=True)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.tag.sn} {self.time.strftime('%d.%m.%Y: %H:%M:%S')}"
|
||||
record_time = self.time.strftime("%d.%m.%Y: %H:%M:%S")
|
||||
return f"{self.tag.sn} {record_time}"
|
||||
|
||||
class Meta:
|
||||
unique_together = (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user