Pass kwargs to methodview

This commit is contained in:
Joel Collins 2018-12-05 12:03:09 +00:00
parent ce6d281dce
commit b6d0aebc1b

View file

@ -97,14 +97,14 @@ def index():
class MicroscopeView(MethodView):
def __init__(self, microscope):
def __init__(self, microscope, **kwargs):
"""
Create a generic MethodView with a globally available
microscope object passed as an argument.
"""
self.microscope = microscope
MethodView.__init__(self)
MethodView.__init__(self, **kwargs)
class StreamAPI(MicroscopeView):