Coding style stuff

This commit is contained in:
mike cullerton 2022-04-12 13:38:38 -04:00
parent 0e3b467091
commit bee58ec6d7
1 changed files with 3 additions and 1 deletions

View File

@ -196,6 +196,7 @@ class FileSchema(Schema):
else:
return ""
class LookupFileModel(db.Model):
"""Gives us a quick way to tell what kind of lookup is set on a form field."""
__tablename__ = 'lookup_file'
@ -209,6 +210,7 @@ class LookupFileModel(db.Model):
dependencies = db.relationship("LookupDataModel", lazy="select", backref="lookup_file_model",
cascade="all, delete, delete-orphan")
class LookupDataModel(db.Model):
__tablename__ = 'lookup_data'
id = db.Column(db.Integer, primary_key=True)