django-natural-keys icon indicating copy to clipboard operation
django-natural-keys copied to clipboard

RFE: representation of datetime

Open dpzimmer opened this issue 4 years ago • 1 comments

The str() representation of a datetime value is s.isoformat(sep=' ') whereas the representation of a DateTimeField is s.isoformat(sep='T').

It would be nice to have the option for natural_key representation of datetime values using the latter... perhaps adding a datetime_separator variable similar to the natural_key_separator variable. Example attached.

thanks

natural_keys.models.py.txt

dpzimmer avatar Mar 27 '20 18:03 dpzimmer