Add support for 'python_type' to 'ColorType'
This commit is contained in:
@@ -49,6 +49,7 @@ class ColorType(types.TypeDecorator, ScalarCoercible):
|
|||||||
"""
|
"""
|
||||||
STORE_FORMAT = u'hex'
|
STORE_FORMAT = u'hex'
|
||||||
impl = types.Unicode(20)
|
impl = types.Unicode(20)
|
||||||
|
python_type = colour.Color
|
||||||
|
|
||||||
def __init__(self, max_length=20, *args, **kwargs):
|
def __init__(self, max_length=20, *args, **kwargs):
|
||||||
# Fail if colour is not found.
|
# Fail if colour is not found.
|
||||||
|
Reference in New Issue
Block a user