wharton/drf-excel

Format attribute not working on DateTimeField and DateField serializers

darcivieira opened this issue · 3 comments

Hey

With a DateField or DateTimeField serializers, I'm not able to use the format attribute to manipulate date to get my own output.

I am going to fix the readme information which is not accurate, it is using the old format.

here is an example on how to use it (see openpyx formats)

column_data_styles = {
    'created_datetime': {
        'format': 'd.m.y h:mm'
    },
}

@darcivieira please confirm that it works when you get a chance

No more response. Fixed readme is correct 👍