render in template

Issue #67 closed
Former user created an issue

How can I render the restults in a template? Have you got template example. I do get results but in JSON format on a blank page. I don't achieve to redirect the json to my HTML template. my html template 'myboot.html' is in attachment.

An here is what I used for my view

class MyDatatableView(BaseDatatableView): model = Revenue columns = ["invnr", "inputdate", "client", "revcat", "amountvat", "payamount"] search_fields = ["client", "revcat"] template_name = "money/myboot.html"

max_display_length = 500

def get_template_names(self):
    return "money/myboot.html"

Comments (1)

  1. Log in to comment