@@ -1636,6 +1636,13 @@ class TableAutoConfig(AutoConfig):
16361636
16371637 rows = Refinable ()
16381638
1639+ def endpoint__tbody (table , ** _ ):
1640+ return {
1641+ 'html' : table .container .__html__ (
1642+ render = lambda fragment , context : fragment .render_text_or_children (context = context )
1643+ )
1644+ }
1645+
16391646
16401647def endpoint__csv (table , ** _ ):
16411648 from datetime import timezone
@@ -1780,8 +1787,6 @@ class Meta:
17801787 columns : Dict [str , Column ] = RefinableMembers ()
17811788
17821789 class Meta :
1783- query__advanced__assets__query_form_toggle_script__template = "iommi/query/form_toggle_script.html"
1784- assets__table_js_select_all__template = "iommi/table/js_select_all.html"
17851790 member_class = Column
17861791 form_class = Form
17871792 query_class = Query
@@ -1790,24 +1795,6 @@ class Meta:
17901795 cells_class = Cells
17911796 row_group_class = RowGroup
17921797
1793- @staticmethod
1794- def endpoints__tbody__func (table , ** _ ):
1795- return {
1796- 'html' : table .container .__html__ (
1797- render = lambda fragment , context : fragment .render_text_or_children (context = context )
1798- )
1799- }
1800-
1801- endpoints__csv__func = endpoint__csv
1802-
1803- container__attrs = Namespace (
1804- {
1805- 'data-endpoint' : lambda table , ** _ : DISPATCH_PREFIX + table .endpoints .tbody .iommi_path ,
1806- 'data-iommi-id' : lambda table , ** _ : table .iommi_path ,
1807- }
1808- )
1809-
1810- query__form__attrs = {'data-iommi-id-of-table' : lambda table , ** _ : table .iommi_path }
18111798 columns = EMPTY
18121799 parts = EMPTY
18131800 row__attrs__class = EMPTY
@@ -1875,6 +1862,17 @@ def post_bulk_edit(table, queryset, updates, **_):
18751862 # style
18761863 query__form__actions__submit__call_target = Action .button ,
18771864 title = MISSING ,
1865+ endpoints__tbody__func = endpoint__tbody ,
1866+ endpoints__csv__func = endpoint__csv ,
1867+ query__advanced__assets__query_form_toggle_script__template = "iommi/query/form_toggle_script.html" ,
1868+ query__form__attrs = {
1869+ 'data-iommi-id-of-table' : lambda table , ** _ : table .iommi_path ,
1870+ },
1871+ assets__table_js_select_all__template = "iommi/table/js_select_all.html" ,
1872+ container__attrs = {
1873+ 'data-endpoint' : lambda table , ** _ : DISPATCH_PREFIX + table .endpoints .tbody .iommi_path ,
1874+ 'data-iommi-id' : lambda table , ** _ : table .iommi_path ,
1875+ },
18781876 )
18791877 def __init__ (
18801878 self ,
0 commit comments