We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030e8e7 commit 3225c14Copy full SHA for 3225c14
simple_history/__init__.py
@@ -20,7 +20,8 @@ def register(
20
"""
21
from . import models
22
if model._meta.db_table not in models.registered_models:
23
- records_class = records_class or models.HistoricalRecords
+ if records_class is None:
24
+ records_class = models.HistoricalRecords
25
records = records_class(**records_config)
26
records.manager_name = manager_name
27
records.module = app and ("%s.models" % app) or model.__module__
0 commit comments