From e3e96d546a223b3e919b9cf1d1879968412dd6b6 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Fri, 25 Jan 2013 16:59:48 -0800 Subject: [PATCH] Another small fix for the peewee docs --- docs/quickstart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 8d288e8..2e21d37 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -184,17 +184,17 @@ possible using Peewee: # Create database connection object db = Database(app) - class Role(Model, RoleMixin): + class Role(db.Model, RoleMixin): name = TextField(unique=True) description = TextField(null=True) - class User(Model, UserMixin): + class User(db.Model, UserMixin): email = TextField() password = TextField() active = BooleanField(default=True) confirmed_at = DateTimeField(null=True) - class UserRoles(Model): + class UserRoles(db.Model): # Because peewee does not come with built-in many-to-many # relationships, we need this intermediary class to link # user to roles.