tcms.core.history module¶
- class tcms.core.history.KiwiHistoricalRecords(verbose_name=None, verbose_name_plural=None, bases=(<class 'django.db.models.base.Model'>, ), user_related_name='+', table_name=None, inherit=False, excluded_fields=None, history_id_field=None, history_change_reason_field=None, user_model=None, get_user=<function _default_get_user>, cascade_delete_history=False, custom_model_name=None, app=None, history_user_id_field=None, history_user_getter=<function _history_user_getter>, history_user_setter=<function _history_user_setter>, related_name=None, use_base_model_db=False, user_db_constraint=True, no_db_index=[], excluded_field_kwargs=None, history_manager=<class 'simple_history.manager.HistoryManager'>, historical_queryset=<class 'simple_history.manager.HistoricalQuerySet'>, m2m_fields=(), m2m_fields_model_field_name='_history_m2m_fields', m2m_bases=(<class 'django.db.models.base.Model'>, ))[source]¶
Bases:
HistoricalRecords
This class will keep track of what fields were changed inside of the
history_change_reason
field. This gives us a crude changelog until upstream introduces their new interface.- finalize(sender, **kwargs)[source]¶
Connect the pre_save signal handler after calling the inherited method.
- class tcms.core.history.ReadOnlyHistoryAdmin(model, admin_site)[source]¶
Bases:
SimpleHistoryAdmin
Custom history admin which shows all fields as read-only.
- history_list_display = ['Diff']¶
- property media¶