diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-01 18:34:00 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-01 18:34:00 +0200 |
| commit | 288694ae9a61c59dba91e2357fa7785d95a51341 (patch) | |
| tree | b20e1984ac881fa194fd26b19cfa8ee483ed000e /cli/app/sql/models/graph.py | |
| parent | 1a7370c19a7eed6a5f0f48e270092f9b3caebbc1 (diff) | |
forms
Diffstat (limited to 'cli/app/sql/models/graph.py')
| -rw-r--r-- | cli/app/sql/models/graph.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/app/sql/models/graph.py b/cli/app/sql/models/graph.py index 59d55c8..ef5a817 100644 --- a/cli/app/sql/models/graph.py +++ b/cli/app/sql/models/graph.py @@ -5,7 +5,6 @@ from wtforms_alchemy import ModelForm from app.sql.common import db, Base, Session -from app.utils.file_utils import sha256_tree from app.settings import app_cfg from os.path import join @@ -33,3 +32,10 @@ class Graph(Base): 'created_at': self.created_at, 'updated_at': self.updated_at, } + +class GraphForm(ModelForm): + class Meta: + model = Graph + exclude = ['settings', 'created_at', 'updated_at'] + def get_session(): + return Session() |
