Source code for superdjango.contrib.history.admin

# Imports

from django.contrib import admin
# from django.forms import ModelForm
# from django.utils.translation import ugettext_lazy as _
from superdjango.db.history.admin import BaseHistoryModelAdmin
from .models import History

# Exports

__all__ = (
    "HistoryAdmin",
)

# Forms

# Inlines

# Models


[docs]@admin.register(History) class HistoryAdmin(BaseHistoryModelAdmin):
[docs] def get_fields(self, request, obj=None): fields = super().get_fields(request, obj=obj) fields.append("field_changes") return fields