Code Cleanup with ruff.

This commit is contained in:
2023-08-13 15:37:48 +02:00
parent 4c00211432
commit 06785a3e49
59 changed files with 1041 additions and 672 deletions

View File

@@ -7,7 +7,6 @@ from datetime import timezone
class Migration(migrations.Migration):
dependencies = [
('events', '0006_auto_20160916_1800'),
]
@@ -17,39 +16,45 @@ class Migration(migrations.Migration):
model_name='event',
name='date_created',
field=models.DateTimeField(
auto_now_add=True, null=True, verbose_name='first created at', db_index=True),
auto_now_add=True, null=True, verbose_name='first created at',
db_index=True),
),
migrations.AddField(
model_name='event',
name='date_modified',
field=models.DateTimeField(default=datetime.datetime(
2016, 10, 12, 20, 24, 39, 910492, tzinfo=timezone.utc), verbose_name='latest updated at', auto_now=True),
2016, 10, 12, 20, 24, 39, 910492, tzinfo=timezone.utc),
verbose_name='latest updated at', auto_now=True),
preserve_default=False,
),
migrations.AddField(
model_name='location',
name='date_created',
field=models.DateTimeField(
auto_now_add=True, null=True, verbose_name='first created at', db_index=True),
auto_now_add=True, null=True, verbose_name='first created at',
db_index=True),
),
migrations.AddField(
model_name='location',
name='date_modified',
field=models.DateTimeField(default=datetime.datetime(
2016, 10, 12, 20, 24, 44, 566305, tzinfo=timezone.utc), verbose_name='latest updated at', auto_now=True),
2016, 10, 12, 20, 24, 44, 566305, tzinfo=timezone.utc),
verbose_name='latest updated at', auto_now=True),
preserve_default=False,
),
migrations.AddField(
model_name='photo',
name='date_created',
field=models.DateTimeField(
auto_now_add=True, null=True, verbose_name='first created at', db_index=True),
auto_now_add=True, null=True, verbose_name='first created at',
db_index=True),
),
migrations.AddField(
model_name='photo',
name='date_modified',
field=models.DateTimeField(default=datetime.datetime(
2016, 10, 12, 20, 24, 50, 509970, tzinfo=timezone.utc), verbose_name='latest updated at', auto_now=True),
2016, 10, 12, 20, 24, 50, 509970, tzinfo=timezone.utc),
verbose_name='latest updated at', auto_now=True),
preserve_default=False,
),
]