From 07c8e144d7e1bb41cc390d284883e9a7d661e197 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Wed, 19 Oct 2016 20:36:51 -0400 Subject: [PATCH] Update devref examples about alembic migrations Because model_base.py is now in neutron-lib. Change-Id: I4e508a9c88af1017ffa20f5346e3c859c5236223 --- doc/source/devref/template_model_sync_test.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/devref/template_model_sync_test.rst b/doc/source/devref/template_model_sync_test.rst index fb8aab10acf..6c03ecdbdf4 100644 --- a/doc/source/devref/template_model_sync_test.rst +++ b/doc/source/devref/template_model_sync_test.rst @@ -52,14 +52,15 @@ Steps for implementing the test Create a module ``networking_foo/db/models/head.py`` with the following content: :: - from neutron.db.migration.models import head + from neutron_lib.db import model_base + from networking_foo import models # noqa # Alternatively, import separate modules here if the models are not in one # models.py file def get_metadata(): - return head.model_base.BASEV2.metadata + return model_base.BASEV2.metadata 2. Implement the test module