-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized database requests when removing resources (#8192)
- Loading branch information
Showing
4 changed files
with
190 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
cvat/apps/engine/migrations/0082_alter_labeledimage_job_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# Generated by Django 4.2.14 on 2024-07-22 07:27 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("engine", "0081_job_assignee_updated_date_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="labeledimage", | ||
name="job", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, to="engine.job" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledimageattributeval", | ||
name="image", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="attributes", | ||
related_query_name="attribute", | ||
to="engine.labeledimage", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledshape", | ||
name="job", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, to="engine.job" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledshape", | ||
name="parent", | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="elements", | ||
to="engine.labeledshape", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledshapeattributeval", | ||
name="shape", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="attributes", | ||
related_query_name="attribute", | ||
to="engine.labeledshape", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledtrack", | ||
name="job", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, to="engine.job" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledtrack", | ||
name="parent", | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="elements", | ||
to="engine.labeledtrack", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="labeledtrackattributeval", | ||
name="track", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="attributes", | ||
related_query_name="attribute", | ||
to="engine.labeledtrack", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="trackedshapeattributeval", | ||
name="shape", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.DO_NOTHING, | ||
related_name="attributes", | ||
related_query_name="attribute", | ||
to="engine.trackedshape", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters