diff --git a/sqlalchemy_jsonapi/serializer.py b/sqlalchemy_jsonapi/serializer.py index 9fb694f..fd33e64 100644 --- a/sqlalchemy_jsonapi/serializer.py +++ b/sqlalchemy_jsonapi/serializer.py @@ -4,7 +4,11 @@ Colton J. Provias MIT License """ -from enum import Enum + +try: + from enum import Enum +except ImportError: + from enum34 import Enum from inflection import dasherize, tableize, underscore from sqlalchemy.exc import IntegrityError