Отмена
This commit is contained in:
parent
07aa2b59a9
commit
8062bd51e6
@ -1,21 +0,0 @@
|
||||
# Generated by Django 3.2.25 on 2025-06-05 13:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gto', '0019_alter_equipmenttracking_options'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveIndex(
|
||||
model_name='equipmenttracking',
|
||||
name='gto_equipme_equipme_7c0944_idx',
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='equipmenttracking',
|
||||
index=models.Index(fields=['equipment', '-time'], name='gto_equipme_equipme_490e56_idx'),
|
||||
),
|
||||
]
|
||||
@ -36,8 +36,7 @@ class EquipmentTracking(models.Model): # Передвижение оборуд
|
||||
icon_obj = ModelTypeIcons.objects.filter(model=type_g).first()
|
||||
if icon_obj is not None:
|
||||
icon = icon_obj.icon.url
|
||||
connection_condition = self.equipment.get_condition(self.time,
|
||||
time_filter)
|
||||
connection_condition = self.equipment.get_condition(self.time, time_filter)
|
||||
|
||||
return {
|
||||
"id": self.equipment.id,
|
||||
@ -70,7 +69,7 @@ class EquipmentTracking(models.Model): # Передвижение оборуд
|
||||
),
|
||||
models.Index(
|
||||
fields=[
|
||||
"equipment", "-time"
|
||||
"equipment",
|
||||
]
|
||||
),
|
||||
models.Index(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user