morlandi / django-ajax-datatable

A Django app which provides the integration of a Django project with the jQuery Javascript library DataTables.net
MIT License
204 stars 64 forks source link

Accessing request in customize_row() #96

Closed bitwiseoperations closed 1 year ago

bitwiseoperations commented 1 year ago

Hello,

I'm currently trying to modify a cell in a row for some of my tables, depending on the status of another object which the main object is is a foreign key for. Unlike with the other overrideable methods it seems I can't just add request=None to the params, is there any other way for me to do this?

Kind regards, Nestor

Mike3285 commented 1 year ago

I think you can just access it on self.request

bitwiseoperations commented 1 year ago

Hi Mike,

Yep, I can. Thank you for your help, I feel a bit of a fool now... But at least I know.