Permalink
Browse files

Change import to module scope

  • Loading branch information...
stevepiercy committed Jun 28, 2018
1 parent 6986c6b commit 80ab8e738e7c997d8931df83c5714e5959e7b4ba
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/tutorials/wiki2/src/models/tutorial/scripts/initialize_db.py
@@ -4,19 +4,19 @@
from pyramid.paster import bootstrap, setup_logging
from sqlalchemy.exc import OperationalError
from ..models import Page, User
from .. import models
def setup_models(dbsession):
editor = User(name='editor', role='editor')
editor = models.User(name='editor', role='editor')
editor.set_password('editor')
dbsession.add(editor)
basic = User(name='basic', role='basic')
basic = models.User(name='basic', role='basic')
basic.set_password('basic')
dbsession.add(basic)
page = Page(
page = models.Page(
name='FrontPage',
creator=editor,
data='This is the front page',

0 comments on commit 80ab8e7

Please sign in to comment.