I've checked django-tables2 documentation, however I haven't find an easy way to export models to different sheets in Excel. To make it simple, let's suppose I have two different models: Sales and Products. I would like to export an excel document with two different sheets: Sales and Products. I can export the first model with the code shown below, but I'm not sure if there's a way to export the Products model to another sheet. Any help would be appreciated.
export_format = request.GET.get('_export', None)
if TableExport.is_valid_format(export_format):
table = [[Sales Table Object]]
exporter = TableExport(export_format, table)
return exporter.response('File_Name.{}'.format(export_format)) ```