# Generated by Django 4.2.8 on 2024-10-17 18:41

from django.db import migrations

def update_specific_file_path(apps, schema_editor):
    Dataset = apps.get_model('dataset', 'Dataset')

    # Target the dataset with the current file path "datasets/7week Unwounded"
    obj = Dataset.objects.filter(data='datasets/7week Unwounded').first()

    if obj:
        # Update the file path to include the space "datasets/7 week Unwounded"
        obj.data.name = 'datasets/7 week Unwounded'
        obj.save()

class Migration(migrations.Migration):

    dependencies = [
        ('dataset', '0003_alter_dataset_slug'),
    ]

    operations = [
        migrations.RunPython(update_specific_file_path),

    ]
