Skip to content

Commit

Permalink
Added m2m support to register. See jazzband#16 and Kyruus/django-simp…
Browse files Browse the repository at this point in the history
  • Loading branch information
James Osgood committed Sep 23, 2014
1 parent 8d86017 commit fa6862a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simple_history/__init__.py
Expand Up @@ -19,6 +19,8 @@ def register(model, app=None, manager_name='history', **records_config):
records = models.HistoricalRecords(**records_config)
records.manager_name = manager_name
records.module = app and ("%s.models" % app) or model.__module__
records.cls = model
records.add_extra_methods(model)
records.setup_m2m_history(model)
records.finalize(model)
models.registered_models[model._meta.db_table] = model

0 comments on commit fa6862a

Please sign in to comment.