def create(self, **kwargs):
obj = self.model(**kwargs)<EOL>meta = obj.get_meta()<EOL>meta.connection = get_es_connection(self.es_url, self.es_kwargs)<EOL>meta.index=self.index<EOL>meta.type=self.type<EOL>obj.save(force=True)<EOL>return obj<EOL>
Creates a new object with the given kwargs, saving it to the database
and returning the created object.