models py class Document db Model Document author db ReferenceProperty

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#models.py
class Document(db.Model):
"""
Document
"""
author = db.ReferenceProperty(User)
#...
#forms.py
from models import Document
#...SomeForm
#tests.py
from models import Document
from forms import SomeForm