Skip to content

Commit f75e0e0

Browse files
pre-commit-ci[bot]jeking3
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e8c4bef commit f75e0e0

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

simple_history/registry_tests/migration_test_app/migrations/0007_alter_historicalmodelwithcustomattrforeignkey_options_and_more.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,38 @@
66
class Migration(migrations.Migration):
77

88
dependencies = [
9-
('migration_test_app', '0006_alter_historicalmodelwithcustomattronetoonefield_options_and_more'),
9+
(
10+
"migration_test_app",
11+
"0006_alter_historicalmodelwithcustomattronetoonefield_options_and_more",
12+
),
1013
]
1114

1215
operations = [
1316
migrations.AlterModelOptions(
14-
name='historicalmodelwithcustomattrforeignkey',
15-
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical model with custom attr foreign key', 'verbose_name_plural': 'historical model with custom attr foreign keys'},
17+
name="historicalmodelwithcustomattrforeignkey",
18+
options={
19+
"get_latest_by": ("history_date", "history_id"),
20+
"ordering": ("-history_date", "-history_id"),
21+
"verbose_name": "historical model with custom attr foreign key",
22+
"verbose_name_plural": "historical model with custom attr foreign keys",
23+
},
1624
),
1725
migrations.AlterModelOptions(
18-
name='historicalmodelwithcustomattronetoonefield',
19-
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical model with custom attr one to one field', 'verbose_name_plural': 'historical model with custom attr one to one fields'},
26+
name="historicalmodelwithcustomattronetoonefield",
27+
options={
28+
"get_latest_by": ("history_date", "history_id"),
29+
"ordering": ("-history_date", "-history_id"),
30+
"verbose_name": "historical model with custom attr one to one field",
31+
"verbose_name_plural": "historical model with custom attr one to one fields",
32+
},
2033
),
2134
migrations.AlterModelOptions(
22-
name='historicalyar',
23-
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical yar', 'verbose_name_plural': 'historical yars'},
35+
name="historicalyar",
36+
options={
37+
"get_latest_by": ("history_date", "history_id"),
38+
"ordering": ("-history_date", "-history_id"),
39+
"verbose_name": "historical yar",
40+
"verbose_name_plural": "historical yars",
41+
},
2442
),
2543
]

simple_history/tests/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def test_historical_verbose_name_plural_follows_model_verbose_name_plural(self):
530530
library.save()
531531
self.assertEqual(
532532
"historical quiet please plural",
533-
library.history.get()._meta.verbose_name_plural
533+
library.history.get()._meta.verbose_name_plural,
534534
)
535535

536536
def test_foreignkey_primarykey(self):

0 commit comments

Comments
 (0)