diff options
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() |
