django-datatable
django-datatable copied to clipboard
How to include table tag in html for view inherited FeedDataView
I have defined the view which inherits FeedDataView. I am unable to include it in HTML. Please explain how to use it. Even your examples miss this.
I just update readme file, let me know it helps or not. https://github.com/shymonk/django-datatable/blob/master/README.rst#custom-ajax
Hi,
Thanks for updating the README.
My next question is, how one can one pass variable kwargs argument to reverse_lazy function for ajax_source?
e.g. ajax_source = reverse_lazy('url_name',kwargs={'pk':some_variable})
Hi, You have to override the table constructor and set the ajax_source property of self.opt. This way you can pass argument to the table instanciation and thus to the reverse_lazy function.
@SwanMougnoz , Thanks for the reply. Let me do it and reach you.
i cant find FeedDataView its giving me error : ImportError: cannot import name FeedDataView please tell me how to define FeedDataView
thanks in advance.