Skip to content

Commit 3225c14

Browse files
committed
Change style of setting records_class default
1 parent 030e8e7 commit 3225c14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simple_history/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def register(
2020
"""
2121
from . import models
2222
if model._meta.db_table not in models.registered_models:
23-
records_class = records_class or models.HistoricalRecords
23+
if records_class is None:
24+
records_class = models.HistoricalRecords
2425
records = records_class(**records_config)
2526
records.manager_name = manager_name
2627
records.module = app and ("%s.models" % app) or model.__module__

0 commit comments

Comments
 (0)