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/tile.py | |
| parent | 1a7370c19a7eed6a5f0f48e270092f9b3caebbc1 (diff) | |
forms
Diffstat (limited to 'cli/app/sql/models/tile.py')
| -rw-r--r-- | cli/app/sql/models/tile.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/app/sql/models/tile.py b/cli/app/sql/models/tile.py index 7ca311d..01b3fab 100644 --- a/cli/app/sql/models/tile.py +++ b/cli/app/sql/models/tile.py @@ -33,3 +33,11 @@ class Tile(Base): 'created_at': self.created_at, 'updated_at': self.updated_at, } + + +class TileForm(ModelForm): + class Meta: + model = Tile + exclude = ['graph_id', 'page_id', 'target_page_id', 'settings', 'created_at', 'updated_at'] + def get_session(): + return Session() |
