def get_model_meta(model):
 meta_def = {}
 for (kwd, defn) in meta_details.items():
  try:
   meta_def[kwd] = get_value(model._meta, defn)
  except IsDefault:
   pass
 for base in model.__bases__:
  if (hasattr(base, '_meta') and issubclass(base, models.Model)):
   if (not base._meta.abstract):
    if ('_ormbases' not in meta_def):
     meta_def['_ormbases'] = []
    meta_def['_ormbases'].append(('%s.%s' % (base._meta.app_label, base._meta.object_name)))
 return meta_def

def get_model_meta ( model ) : meta_def = { } for ( kwd , defn ) in meta_details . items ( ) : try : meta_def [ kwd ] = get_value ( model . _meta , defn ) except IsDefault : pass for base in model . __bases__ : if ( hasattr ( base , '_meta' ) and issubclass ( base , models . Model ) ) : if ( not base . _meta . abstract ) : if ( '_ormbases' not in meta_def ) : meta_def [ '_ormbases' ] = [ ] meta_def [ '_ormbases' ] . append ( ( '%s.%s' % ( base . _meta . app_label , base . _meta . object_name ) ) ) return meta_def
given a model class .