Skip to content

Commit

Permalink
fix bug 1018888 - Ensure dates filter properly within the revision da…
Browse files Browse the repository at this point in the history
…shboard
  • Loading branch information
darkwing committed Jun 3, 2014
1 parent 0314deb commit c6906e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/dashboards/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class RevisionDashboardForm(forms.Form):
label=_lazy(u'Topic:'))

start_date = forms.DateField(required=False, label=_lazy(u'Start Date:'),
input_formats=settings.DATE_INPUT_FORMATS,
input_formats=['%m/%d/%Y'],
widget=forms.TextInput(attrs={'pattern': '\d{1,2}/\d{1,2}/\d{4}'}))

end_date = forms.DateField(required=False, label=_lazy(u'End Date:'),
input_formats=settings.DATE_INPUT_FORMATS,
input_formats=['%m/%d/%Y'],
widget=forms.TextInput(attrs={'pattern': '\d{1,2}/\d{1,2}/\d{4}'}))
3 changes: 0 additions & 3 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,6 @@ def JINJA_CONFIG():
RECAPTCHA_PRIVATE_KEY = 'SET ME IN SETTINGS_LOCAL'
RECAPTCHA_PUBLIC_KEY = 'SET ME IN SETTINGS_LOCAL'

# date format, needed for custom revision dashboard
DATE_INPUT_FORMATS = ('%d/%m/%Y', '%Y/%m/%d', '%m/%d/%Y', '%d-%m-%Y', '%Y-%m-%d', '%m-%d-%Y')

# content flagging
FLAG_REASONS = (
('notworking', _('This demo is not working for me')),
Expand Down

0 comments on commit c6906e4

Please sign in to comment.