wharton / drf-excel

An XLSX spreadsheet renderer for Django REST Framework.
BSD 3-Clause "New" or "Revised" License
212 stars 40 forks source link

DateField enabling allow_null and source arguments does't work #55

Closed darcivieira closed 2 years ago

darcivieira commented 2 years ago

Hey,

I tried to used something like this:

some_date = serializers.DateField(format="%m-%d-%Y", source="one_step.two_step.my_some_date", allow_null=True")

So, when I tried to export, all that columns come blank. That's why we will have a moment that one item will bring us a NoneType value.