django-datatable
django-datatable copied to clipboard
add stateSave for tables
#tables.py
#save state of table between PostBack , Redirect ... (saves filter,search,etc ... )
self.save_state = getattr(options, 'stateSave', False)
#table.html
{% block save_table_state %}
"stateSave": {{ save_state }},
{% endblock %}
good, , i have to modify the templates table.html as below before i see this comment {% block table_options %} "stateSave": true, {% block table_dom %}