diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-01 19:49:46 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-01 19:49:46 +0200 |
| commit | 3bcae4c2cfbef73cac81cedbbe74426f17d90099 (patch) | |
| tree | ab168dd16429aa8ef5d3b3511b4be1a5dafc5ea9 /cli/app/sql/models/page.py | |
| parent | 3fb522534cff61576ac58ae466a2752585b8c44e (diff) | |
flask app runs and js compiles
Diffstat (limited to 'cli/app/sql/models/page.py')
| -rw-r--r-- | cli/app/sql/models/page.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/app/sql/models/page.py b/cli/app/sql/models/page.py index bad5568..f23db8d 100644 --- a/cli/app/sql/models/page.py +++ b/cli/app/sql/models/page.py @@ -40,9 +40,9 @@ class Page(Base): data['tiles'] = [ tile.toJSON() for tile in self.tiles ] return data -# class PageForm(ModelForm): -# class Meta: -# model = Page -# exclude = ['graph_id', 'settings', 'created_at', 'updated_at'] -# def get_session(): -# return Session() +class PageForm(ModelForm): + class Meta: + model = Page + exclude = ['settings', 'created_at', 'updated_at'] + def get_session(): + return Session() |
