

def __init__(self, *args, **kwargs):
    'Initializes the VersionAdmin'
    super(VersionAdmin, self).__init__(*args, **kwargs)
    if (not connection.features.uses_savepoints):
        raise ImproperlyConfigured('Cannot use VersionAdmin with a database that does not support savepoints.')
    if (not self.revision_manager.is_registered(self.model)):
        inline_fields = []
        for inline in self.inlines:
            (inline_model, follow_field, _) = self._introspect_inline_admin(inline)
            if inline_model:
                self._autoregister(inline_model)
            if follow_field:
                inline_fields.append(follow_field)
        self._autoregister(self.model, inline_fields)

dataset/ETHPy150Open etianen/django-reversion/src/reversion/admin.py VersionAdmin.__init__/original