Skip to content

Instantly share code, notes, and snippets.

@walison17
Created June 23, 2019 22:59
Show Gist options
  • Save walison17/897d462c46a56a0c0bde07f8944fee76 to your computer and use it in GitHub Desktop.
Save walison17/897d462c46a56a0c0bde07f8944fee76 to your computer and use it in GitHub Desktop.
class MyDateInput(forms.DateInput):
input_type = 'date'
def __init__(self, **kwargs):
super().__init__(format='%Y-%m-%d')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment