From b820172050c9f0c5c75a986f173f849b557bafb2 Mon Sep 17 00:00:00 2001 From: Zonlgin-Li6565 Date: Mon, 11 Mar 2019 20:08:28 -0500 Subject: [PATCH] Import annotation --- instadam/models/image.py | 2 ++ instadam/models/label.py | 2 ++ instadam/models/user.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/instadam/models/image.py b/instadam/models/image.py index 36f1011..f2494d5 100644 --- a/instadam/models/image.py +++ b/instadam/models/image.py @@ -6,6 +6,8 @@ from flask import current_app as app from sqlalchemy.orm import relationship +from instadam.models.annotation import Annotation + from instadam.models.project import Project from instadam.utils.file import (get_project_dir, parse_and_validate_file_extension) diff --git a/instadam/models/label.py b/instadam/models/label.py index e81a3a1..b31d99d 100644 --- a/instadam/models/label.py +++ b/instadam/models/label.py @@ -3,6 +3,8 @@ # from instadam.models.project import label_project_association_table from ..app import db +from instadam.models.annotation import Annotation + class Label(db.Model): """Class label is a database model to represent an label diff --git a/instadam/models/user.py b/instadam/models/user.py index e3f25c3..d43eb50 100644 --- a/instadam/models/user.py +++ b/instadam/models/user.py @@ -4,6 +4,8 @@ from sqlalchemy.orm import relationship from werkzeug.security import check_password_hash, generate_password_hash +from instadam.models.annotation import Annotation + from ..app import db