Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2023
1 parent 2a28f2c commit add4f15
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion simple_history/management/commands/clean_old_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def handle(self, *args, **options):
self._process(to_process, days_back=options["days"], dry_run=options["dry"])

def _process(self, to_process, days_back=None, dry_run=True):

start_date = timezone.now() - timezone.timedelta(days=days_back)
for model, history_model in to_process:
history_model_manager = history_model.objects
Expand Down
1 change: 0 additions & 1 deletion simple_history/management/commands/populate_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def _bulk_history_create(self, model, batch_size):
# creating them. So we only keep batch_size worth of models in
# historical_instances and clear them after we hit batch_size
if index % batch_size == 0:

history.bulk_history_create(instances, batch_size=batch_size)

instances = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("migration_test_app", "0001_initial"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
(
"migration_test_app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
(
"migration_test_app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
(
"migration_test_app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
(
"migration_test_app",
Expand Down

0 comments on commit add4f15

Please sign in to comment.