Skip to content

Commit

Permalink
[#262] Fix helper import in lib.field_types
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jan 9, 2013
1 parent 4fddebb commit 7b75158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/field_types.py
Expand Up @@ -6,7 +6,7 @@
with warnings.catch_warnings():
warnings.filterwarnings('ignore', '.*compile_mappers.*')
import formalchemy
from ckan.lib.helpers import OrderedDict
import ckan.lib.helpers as h

months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']

Expand All @@ -19,7 +19,7 @@ class DateType(object):
* User inputs in form DD/MM/YYYY and it is stored in db as YYYY-MM-DD.
'''
format_types = ('form', 'db')
datetime_fields = OrderedDict([('year', (1000, 2100, 4, 'YYYY')),
datetime_fields = h.OrderedDict([('year', (1000, 2100, 4, 'YYYY')),
('month', (1, 12, 2, 'MM')),
('day', (1, 31, 2, 'DD')),
('hour', (0, 23, 2, 'HH')),
Expand Down

0 comments on commit 7b75158

Please sign in to comment.