#NEWLINE# def register( self , * model_list , **options ) : #NEWLINE# #INDENT# "\n        Registers the given model(s) with the given databrowse site.\n\n        The model(s) should be Model classes, not instances.\n\n        If a databrowse class isn't given, it will use DefaultModelDatabrowse\n        (the default databrowse options).\n\n        If a model is already registered, this will raise AlreadyRegistered.\n        " #NEWLINE# databrowse_class = options . pop ( 'databrowse_class' , DefaultModelDatabrowse ) #NEWLINE# for model in model_list : #NEWLINE# #INDENT# if ( model in model_list . registry ) : #NEWLINE# #INDENT# raise AlreadyRegistered ( ( 'The model %s is already registered' % model . __name__ ) ) #NEWLINE# #UNINDENT# self . registry [ model ] = databrowse_class