The DatatableMixin cannot render columns, if the QuerySet only contains explicit values

Issue #69 resolved
Andreas Hasenkopf created an issue

Assuming a developer wants to limit the data obtained from the database and uses .values(...) on the queryset, DatatableMixin.render_column produces empty cells.

Comments (2)

  1. Maciej Wisniowski repo owner

    Fix #69: Allow querysets including values() calls

    This commit adds the ability to the cell renderer not only to get values from model attributes, but also from dictionary items in case the queryset was instructed to retrieve only specific values from the database.

    → <<cset 42f7f8edec51>>

  2. Log in to comment