Sith/core/migrations/0009_auto_20161120_1155.py

46 lines
1.3 KiB
Python
Raw Normal View History

2016-11-20 10:56:33 +00:00
from __future__ import unicode_literals
import django.db.models.deletion
2024-06-24 11:07:36 +00:00
from django.db import migrations, models
2016-11-20 10:56:33 +00:00
import core.models
class Migration(migrations.Migration):
2018-10-04 19:29:19 +00:00
dependencies = [("core", "0008_sithfile_asked_for_removal")]
2016-11-20 10:56:33 +00:00
operations = [
migrations.AddField(
2018-10-04 19:29:19 +00:00
model_name="sithfile",
name="compressed",
field=models.FileField(
upload_to=core.models.get_compressed_directory,
null=True,
verbose_name="compressed file",
blank=True,
),
2016-11-20 10:56:33 +00:00
),
migrations.AddField(
2018-10-04 19:29:19 +00:00
model_name="sithfile",
name="thumbnail",
field=models.FileField(
upload_to=core.models.get_thumbnail_directory,
null=True,
verbose_name="thumbnail",
blank=True,
),
2016-11-20 10:56:33 +00:00
),
migrations.AlterField(
2018-10-04 19:29:19 +00:00
model_name="user",
name="home",
field=models.OneToOneField(
verbose_name="home",
related_name="home_of",
on_delete=django.db.models.deletion.SET_NULL,
null=True,
to="core.SithFile",
blank=True,
),
2016-11-20 10:56:33 +00:00
),
]