def _autoregister(admin, model, follow=None):
 if model._meta.proxy:
  raise RegistrationError('Proxy models cannot be used with django-reversion, register the parent class instead')
 if (not is_registered(model)):
  follow = (follow or [])
  for (parent_cls, field) in model._meta.parents.items():
   follow.append(field.name)
   _autoregister(admin, parent_cls)
  register(model, follow=follow, format=admin.reversion_format)

def _autoregister ( admin , model , follow = None ) : if model . _meta . proxy : raise RegistrationError ( 'Proxy models cannot be used with django-reversion, register the parent class instead' ) if ( not is_registered ( model ) ) : follow = ( follow or [ ] ) for ( parent_cls , field ) in model . _meta . parents . items ( ) : follow . append ( field . name ) _autoregister ( admin , parent_cls ) register ( model , follow = follow , format = admin . reversion_format )
registers a model with reversion .