def register(
        model, app=None, manager_name='history', records_class=None,
        table_name=None, **records_config):
    from . import models

    if records_class is None:
        records_class = models.HistoricalRecords

    records = records_class(**records_config)
    records.manager_name = manager_name
    records.table_name = table_name
    records.module = app and ("%s.models" % app) or model.__module__
    records.add_extra_methods(model)
    records.finalize(model)
    models.registered_models[model._meta.db_table] = model
Assign products to given property group with given property_group_id.
dataset/ETHPy150Open treyhunner/django-simple-history/simple_history/__init__.py/register--crossover with--dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/discounts/views.py/assign_products