W
W
WebDeveloper20162016-11-16 14:48:24
Django
WebDeveloper2016, 2016-11-16 14:48:24

How to make optional date field with empty string?

I need to have an optional date field, which would be displayed as an empty string when empty (i.e. nothing was displayed). I gave it blank = True, null = True. Made it optional. But about display does not leave in any way. Only None and that's it... default = '' can't be set - the date is the same... How to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question