mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-19 15:56:05 +01:00
lint
This commit is contained in:
@@ -2,27 +2,27 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
def run_forward(apps, schema_editor):
|
||||
for config in apps.get_model('app', 'Config').objects.all():
|
||||
config.name = f'Unnamed config ({config.created_at.date()})'
|
||||
for config in apps.get_model("app", "Config").objects.all():
|
||||
config.name = f"Unnamed config ({config.created_at.date()})"
|
||||
config.save()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0005_user_force_pro'),
|
||||
("app", "0005_user_force_pro"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='config',
|
||||
name='name',
|
||||
model_name="config",
|
||||
name="name",
|
||||
field=models.CharField(max_length=255, null=True),
|
||||
),
|
||||
migrations.RunPython(run_forward, lambda _, __: None),
|
||||
migrations.AlterField(
|
||||
model_name='config',
|
||||
name='name',
|
||||
model_name="config",
|
||||
name="name",
|
||||
field=models.CharField(max_length=255),
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user