Skip to content

Commit 4780740

Browse files
committed
add view in context
1 parent 69497ac commit 4780740

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

seatable_api/context.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def current_row(self):
4343
def current_table(self):
4444
return context_data.get('table')
4545

46+
@property
47+
@need_data
48+
def current_view(self):
49+
return context_data.get('view')
50+
4651
@property
4752
@need_data
4853
def current_user_id(self):

0 commit comments

Comments
 (0)