Skip to content

Commit

Permalink
- Fix resource api exception
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 7, 2018
1 parent a3edf54 commit f9e85b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geonode/api/resourcebase_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,10 @@ def format_objects(self, objects):
"""
Format the objects for output in a response.
"""
if 'has_time' in self.VALUES:
idx = self.VALUES.index('has_time')
del self.VALUES[idx]
for key in ('site_url', 'has_time'):
if key in self.VALUES:
idx = self.VALUES.index(key)
del self.VALUES[idx]
objects_json = objects.values(*self.VALUES)

# hack needed because dehydrate does not seem to work in CommonModelApi
Expand Down

0 comments on commit f9e85b4

Please sign in to comment.