From 9ac62012f406fd8482844cc87c3d57f6cf2d909e Mon Sep 17 00:00:00 2001 From: Jiangge Zhang Date: Wed, 3 Jun 2015 03:46:43 +0800 Subject: [PATCH 1/2] fix typo in docstring of choice type. --- sqlalchemy_utils/types/choice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlalchemy_utils/types/choice.py b/sqlalchemy_utils/types/choice.py index 89168a3..c901490 100644 --- a/sqlalchemy_utils/types/choice.py +++ b/sqlalchemy_utils/types/choice.py @@ -129,7 +129,7 @@ class ChoiceType(types.TypeDecorator, ScalarCoercible): __tablename__ = 'user' id = sa.Column(sa.Integer, primary_key=True) name = sa.Column(sa.Unicode(255)) - type = sa.Column(ChoiceType(TYPES)) + type = sa.Column(ChoiceType(UserType, impl=sa.Integer())) user = User(type=UserType.admin) From f75c9c1a2e867b804c6402abff185ef106571bb8 Mon Sep 17 00:00:00 2001 From: Jiangge Zhang Date: Mon, 8 Jun 2015 16:11:15 +0800 Subject: [PATCH 2/2] Use shields.io instead of pypip.in. It seems that the pypip.in has been unreachable. --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index ccda553..6f3f57e 100644 --- a/README.rst +++ b/README.rst @@ -14,9 +14,9 @@ Resources - `Issue Tracker `_ - `Code `_ -.. |Build Status| image:: https://travis-ci.org/kvesteri/sqlalchemy-utils.png?branch=master +.. |Build Status| image:: https://travis-ci.org/kvesteri/sqlalchemy-utils.svg?branch=master :target: https://travis-ci.org/kvesteri/sqlalchemy-utils -.. |Version Status| image:: https://pypip.in/v/SQLAlchemy-Utils/badge.png +.. |Version Status| image:: https://img.shields.io/pypi/v/SQLAlchemy-Utils.svg :target: https://pypi.python.org/pypi/SQLAlchemy-Utils/ -.. |Downloads| image:: https://pypip.in/d/SQLAlchemy-Utils/badge.png +.. |Downloads| image:: https://img.shields.io/pypi/dm/SQLAlchemy-Utils.svg :target: https://pypi.python.org/pypi/SQLAlchemy-Utils/