Beispiel #1
0
 def add_field(self,name,**kwargs):
     '''
     Creates a field with the given kwargs, adds it to the
     MetaModel, and saves both
     '''
     try:
         kwargs['name']=name
         kwargs['meta_model']=self._model
         field=MetaField(**kwargs)
         field.save()
     except:
         raise