diff --git a/flask_rest_jsonapi/resource.py b/flask_rest_jsonapi/resource.py index 26b93186..2e48c982 100644 --- a/flask_rest_jsonapi/resource.py +++ b/flask_rest_jsonapi/resource.py @@ -9,7 +9,7 @@ from werkzeug.wrappers import Response from flask import request, url_for, make_response from flask.wrappers import Response as FlaskResponse -from flask.views import MethodView, MethodViewType +from flask.views import MethodView from marshmallow_jsonapi.exceptions import IncorrectTypeError from marshmallow import ValidationError @@ -24,7 +24,7 @@ from marshmallow_jsonapi.fields import BaseRelationship -class ResourceMeta(MethodViewType): +class ResourceMeta(type(MethodView)): """Meta class to initilize the data layer and decorators of a resource""" def __new__(cls, name, bases, d):