Skip to content

Commit

Permalink
[#262] Fix helper import in logic.validators
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jan 9, 2013
1 parent d21b20c commit 6b4cf90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/validators.py
Expand Up @@ -6,7 +6,7 @@

from ckan.lib.navl.dictization_functions import Invalid, StopOnError, Missing, missing, unflatten
from ckan.logic import check_access, NotAuthorized, NotFound
from ckan.lib.helpers import date_str_to_datetime
import ckan.lib.helpers as h
from ckan.model import (MAX_TAG_LENGTH, MIN_TAG_LENGTH,
PACKAGE_NAME_MIN_LENGTH, PACKAGE_NAME_MAX_LENGTH,
PACKAGE_VERSION_MAX_LENGTH,
Expand Down Expand Up @@ -67,7 +67,7 @@ def isodate(value, context):
if value == '':
return None
try:
date = date_str_to_datetime(value)
date = h.date_str_to_datetime(value)
except (TypeError, ValueError), e:
raise Invalid(_('Date format incorrect'))
return date
Expand Down

0 comments on commit 6b4cf90

Please sign in to comment.