def __enter__(self): ''' Create the tables in our database ''' with connection.schema_editor() as editor: for Model in self.models: editor.create_model(Model)