Skip to content

Commit

Permalink
Merge b2d8678 into ec1dd34
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmightyOatmeal committed Jul 10, 2016
2 parents ec1dd34 + b2d8678 commit 12fc864
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flask_restless/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,11 @@ def strings_to_datetimes(model, dictionary):
This function outputs a new dictionary; it does not modify the argument.
"""
# In Python 2.7+, this should be a dict comprehension.
return dict((k, string_to_datetime(model, k, v))
for k, v in dictionary.items() if k not in ('type', 'links'))
# Removed 'type' omission per issue # 559 as that field should not need
# to be removed but leave a list just in-case there are different fields
# needing to be omitted.
return {fieldname: string_to_datetime(model, fieldname, val)
for fieldname, val in dictionary.items() if fieldname not in ['links']}


def get_model(instance):
Expand Down

0 comments on commit 12fc864

Please sign in to comment.