Skip to content

Commit 28facb0

Browse files
committed
Merge pull request #136 from jwhitlock/tox_fixes
Tox fixes
2 parents 1ca167c + fbe3544 commit 28facb0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

docs/_static/.keep

Whitespace-only changes.

simple_history/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def history_form_view(self, request, object_id, version_id):
143143
'has_absolute_url': False,
144144
'form_url': '',
145145
'opts': model._meta,
146-
'content_type_id': ContentType.objects.get_for_model(self.model).id,
146+
'content_type_id': ContentType.objects.get_for_model(
147+
self.model).id,
147148
'save_as': self.save_as,
148149
'save_on_top': self.save_on_top,
149150
'root_path': getattr(self.admin_site, 'root_path', None),

simple_history/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
except ImportError:
3030
pass
3131
else:
32-
add_introspection_rules([], ["^simple_history.models.CustomForeignKeyField"])
32+
add_introspection_rules(
33+
[], ["^simple_history.models.CustomForeignKeyField"])
3334
from .manager import HistoryDescriptor
3435

3536
registered_models = {}

simple_history/tests/migration_test_app/migrations/0001_initial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
23
from __future__ import unicode_literals
34

45
from django.db import models, migrations

0 commit comments

Comments
 (0)