Skip to content

Commit

Permalink
Merge pull request #37 from Martlark/1.5.1
Browse files Browse the repository at this point in the history
1.5.1 Fix TypeError: unsupported operand type(s) for +=: 'ImmutableCo…
  • Loading branch information
Martlark authored Mar 20, 2021
2 parents 7aa4931 + 808c610 commit e47d3c2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ Example to create using POST:
Release Notes
-------------

* 1.5.1 - Fix TypeError: unsupported operand type(s) for +=: 'ImmutableColumnCollection' and 'list' with newer versions of SQLAlchemy
* 1.5.0 - Return item from POST/PUT updates. Allow create_fields and update_fields to be specified using the column fields. None values serialize as null/None. Restore previous update_properties behaviour. By default updates/creates using all fields. Exclude primary key from create and update.
* 1.4.2 - by default return all props with update_properties
* 1.4.1 - Add better exception message when `db` mixin property not set. Add `FlaskSerialize` factory method.
Expand Down
4 changes: 2 additions & 2 deletions flask_serialize/flask_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FlaskSerializeMixin:
# previous values of an instance before update attempted
previous_field_value = {}
# current version
__version__ = '1.5.0'
__version__ = '1.5.1'

def before_update(self, data_dict):
"""
Expand Down Expand Up @@ -285,7 +285,7 @@ def __get_props(self):

# SQL columns
props.__exclude_fields = ['as_dict', 'as_json'] + self.exclude_serialize_fields
field_list = self.__table__.columns
field_list = list(self.__table__.columns)
if 'sqlite' in self.__table__.dialect_options:
props.DIALECT = 'sqlite'
self.convert_types.append(
Expand Down
4 changes: 2 additions & 2 deletions pypar.commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ pip install pytest-flask

. venv3/bin/activate
python setup.py sdist bdist_wheel
twine check dist/flask_serialize-1.5.0*
twine upload dist/flask_serialize-1.5.0* -u martlark
twine check dist/flask_serialize-1.5.1*
twine upload dist/flask_serialize-1.5.1* -u martlark
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
wtforms
flask
SQLAlchemy
SQLAlchemy>=1.4.2
Permissive-Dict
pytest
flask-sqlalchemy
flask-sqlalchemy>=2.5.1
flask-migrate
flask-wtf
setuptools
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from codecs import open
from setuptools import setup

VERSION = '1.5.0'
VERSION = '1.5.1'
LONG_DESCRIPTION = open('README.rst', 'r', encoding='utf-8').read()

setup(
Expand Down

0 comments on commit e47d3c2

Please sign in to comment.