Commit 2cfa85fe authored by David Haynes's avatar David Haynes 🙆
Browse files

Trying to fix deprecated projects + date formatting

- the :dhaynes: fork is _required_ in order to properly import a package + fa icon
- some formatting cleaning
- mm-dd-yyyy now enforced and accepted by django
- static date placed in defaultDate
parent 9be6a01d
......@@ -11,6 +11,7 @@ from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Fieldset, Submit, HTML, Div, Field
from crispy_forms.bootstrap import StrictButton, PrependedText, Accordion, AccordionGroup
from bootstrap3_datetime.widgets import DateTimePicker
import datetime
class URLForm(forms.ModelForm):
......@@ -77,9 +78,15 @@ class URLForm(forms.ModelForm):
expires_custom = forms.DateTimeField(
required = False,
label='Custom Date',
widget=DateTimePicker(options={
"format": "YYYY-MM-DD",
"pickTime": False,
input_formats=['%m-%d-%Y'],
widget=DateTimePicker(
options={
"format": "MM-DD-YYYY",
"pickTime": False,
"defaultDate": "4-20-2016",
},
icon_attrs={
"class": "fa fa-calendar",
})
)
......
......@@ -5,6 +5,7 @@ django-piwik==0.1
django-qrcode==0.3
flake8==2.5.1
git+https://github.com/kstateome/django-cas.git
git+https://github.com/bruno207/django-bootstrap3-datetimepicker.git
gunicorn==19.4.5
hashids==1.1.0
mccabe==0.3.1
......@@ -18,4 +19,3 @@ requests==2.9.1
simplejson==3.8.1
six==1.10.0
wheel==0.26.0
django-bootstrap3-datetimepicker==2.2.3
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