Is there any way I can format the exported excel file? When i export the files, the column is too small to fit the words. Im quite new to this so any help would be much appreciated.

If django-import-export is unable to do this, then is there any other methods to export database information as excel and is able to format the files?
There's actually someone who asked a similar question but there's no answer:
Is there a way to manage the column/cell widths when exporting to Excel with django-import-export?
Some of my code in admin.py
class LogResource(resources.ModelResource):
date = Field(attribute='date', column_name='Date')
dtime = Field(attribute='dtime', column_name='Departure Time')
pilot = Field(attribute='pilot', column_name='Pilot')
cpilot = Field(attribute='cpilot', column_name='Co-Pilot')
purpose = Field(attribute='purpose', column_name='Purpose of Flight')
others = Field(attribute='others', column_name='Others')
class Meta:
model=Log
exclude=('id',)
class LogAdmin(ExportActionModelAdmin, admin.ModelAdmin):
resource_class = LogResource
list_display = ('date', 'dtime', 'purpose', 'pilot', 'cpilot')
list_filter = ('date', 'purpose', 'pilot')
In views.py
def logentry_form_submission(request):
date = request.POST["date"]
dtime = request.POST["dtime"]
pilot = request.POST["pilot"]
cpilot = request.POST["cpilot"]
purpose = request.POST["purpose"]
others = request.POST["others"]
log_info = Log(date=date, dtime=dtime, pilot=pilot, cpilot=cpilot,
purpose=purpose, others=others)
log_info.save()
return render(request, 'myhtml/logentry_form_submission.html')
My code is abit messy since I learn everything online so feel free to improve my code.