Add TODO comment

This commit is contained in:
Lance Edgar 2016-08-19 18:12:13 -05:00
parent 9de5a3b39e
commit dce4972f0f

View file

@ -652,6 +652,7 @@ class MasterView(View):
Fetch the current model instance by inspecting the route kwargs and Fetch the current model instance by inspecting the route kwargs and
doing a database lookup. If the instance cannot be found, raises 404. doing a database lookup. If the instance cannot be found, raises 404.
""" """
# TODO: this can't handle composite model key..is that needed?
key = self.request.matchdict[self.get_model_key()] key = self.request.matchdict[self.get_model_key()]
instance = self.Session.query(self.get_model_class()).get(key) instance = self.Session.query(self.get_model_class()).get(key)
if not instance: if not instance: