Skip to content

Commit c2c9101

Browse files
committed
Small style fix
1 parent bb65c1c commit c2c9101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simple_history/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def register(model, app=None, manager_name='history', **records_config):
1515
`HistoricalManager` instance directly to `model`.
1616
"""
1717
from . import models
18-
if not model._meta.db_table in models.registered_models:
18+
if model._meta.db_table not in models.registered_models:
1919
records = models.HistoricalRecords(**records_config)
2020
records.manager_name = manager_name
2121
records.module = app and ("%s.models" % app) or model.__module__

0 commit comments

Comments
 (0)