Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lyschoening committed Jan 18, 2016
2 parents 4387bb3 + 9d3bbec commit c42c656
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flask_potion/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .instances import Pagination
from .exceptions import ItemNotFound
from .filters import FILTER_NAMES, FILTERS_BY_TYPE, filters_for_fields
import decimal

class Manager(object):
"""
Expand Down Expand Up @@ -98,7 +99,8 @@ def _get_field_from_python_type(python_type):
list: Array,
dict: Object,
datetime.date: Date,
datetime.datetime: DateTime
datetime.datetime: DateTime,
decimal.Decimal: Number,
}[python_type]
except KeyError:
raise RuntimeError('No appropriate field class for "{}" type found'.format(python_type))
Expand Down Expand Up @@ -315,4 +317,4 @@ def read(self, id):

if query is None:
raise ItemNotFound(self.resource, id=id)
return self._query_filter_by_id(query, id)
return self._query_filter_by_id(query, id)

0 comments on commit c42c656

Please sign in to comment.