Permalink
Browse files

Delete alias_set attributes on dehydrate

  • Loading branch information...
1 parent 539ef31 commit 913bae788f35080b11aeb8c174838f0209e340fb @william-gr william-gr committed Sep 10, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 gui/api/resources.py
View
@@ -933,6 +933,9 @@ def dehydrate(self, bundle):
bundle.data['int_aliases'] = [
a.alias_network for a in bundle.obj.alias_set.all()
]
+ for key in bundle.data.keys():
+ if key.startswith('alias_set'):
+ del bundle.data[key]
return bundle
def hydrate(self, bundle):

0 comments on commit 913bae7

Please sign in to comment.