mirror of
https://github.com/ae-utbm/sith.git
synced 2025-03-10 07:17:11 +00:00
28 lines
739 B
Python
28 lines
739 B
Python
# Generated by Django 4.2.17 on 2025-01-26 15:01
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
from django.db import migrations
|
|
from django.db.migrations.state import StateApps
|
|
|
|
if TYPE_CHECKING:
|
|
import core.models
|
|
|
|
|
|
def remove_sas_sithfiles(apps: StateApps, schema_editor):
|
|
SithFile: type[core.models.SithFile] = apps.get_model("core", "SithFile")
|
|
SithFile.objects.filter(is_in_sas=True).delete()
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("core", "0044_alter_userban_options"),
|
|
("sas", "0006_alter_peoplepicturerelation_picture_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(
|
|
remove_sas_sithfiles, reverse_code=migrations.RunPython.noop, elidable=True
|
|
)
|
|
]
|