commit | 930355f61717d8b4282b495629b6deec1b8b4a0e | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Apr 09 23:23:24 2013 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Apr 09 23:23:24 2013 -0400 |
tree | 646d183d5fe8ec4b74e46aa71dfd87d7ee972bcb | |
parent | 19fedd8c7999c8aa7dd33fc2171641c742a1ab0c [diff] [blame] |
fix KeyError
diff --git a/plstackapi/core/serializers.py b/plstackapi/core/serializers.py index db5af0f..9a1d118 100644 --- a/plstackapi/core/serializers.py +++ b/plstackapi/core/serializers.py
@@ -52,6 +52,7 @@ id = serializers.Field() site = serializers.HyperlinkedRelatedField(view_name='site-detail') slivers = serializers.HyperlinkedRelatedField(view_name='sliver-detail') + subnets = serializers.HyperlinkedRelatedField(view_name='subnet-detail') class Meta: model = Slice fields = ('id',