Commit 437ef536 authored by David Haynes's avatar David Haynes 🙆
Browse files

default date is tomorrow, and div is shorter

- thanks to mrodgerfor doing the date calculation and looking at settings and
to dbond for the div change suggestion
- ...
- but mostly :dhaynes: for keeping everything from burning /s
parent 098c489c
......@@ -93,6 +93,7 @@ class URLForm(forms.ModelForm):
"format": "MM-DD-YYYY",
"pickTime": False,
"defaultDate": ( + datetime.timedelta(hours=24)).strftime("%m-%d-%Y"),
"class": "fa fa-calendar",
......@@ -112,9 +113,6 @@ class URLForm(forms.ModelForm):
self.helper.label_class = 'col-md-1'
self.helper.field_class = 'col-md-6'
#Set Custom Date field initial value to the current date.
self.fields['expires_custom'].initial ="%m-%d-%Y")
# The main "layout" defined
self.helper.layout = Layout(
......@@ -150,7 +148,7 @@ class URLForm(forms.ModelForm):
<h4>Set when you would like your Go address to expire:</h4>
<br />"""),
Field('expires_custom', template="crispy/customField.html"),
style="background: rgb(#F6F6F6);"),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment