Skip to content

Commit

Permalink
pep8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
danstovall committed Oct 22, 2014
1 parent e69f363 commit d3b03d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tastypie_mongoengine/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def __new__(cls, name, bases, attrs):

return new_class


class MongoEngineResource(resources.ModelResource):
"""
Adaptation of ``ModelResource`` to MongoEngine.
Expand All @@ -287,7 +288,8 @@ def get_via_uri(self, uri, request=None):
try:
return super(MongoEngineResource, self).get_via_uri(uri, request)
except (NotFound, Resolver404):
# check if this is a polymorphic resource, if so, check the uri against the resources in self._meta.polymorphic
# check if this is a polymorphic resource, if so,
# check the uri against the resources in self._meta.polymorphic
type_map = getattr(self._meta, 'polymorphic', {})
for type_, resource in type_map.iteritems():
try:
Expand Down

0 comments on commit d3b03d1

Please sign in to comment.