added RoleSerializer
diff --git a/plstackapi/planetstack/serializers.py b/plstackapi/planetstack/serializers.py
index b779a4a..ab79886 100644
--- a/plstackapi/planetstack/serializers.py
+++ b/plstackapi/planetstack/serializers.py
@@ -3,6 +3,13 @@
from plstackapi.planetstack.models import *
+class RoleSerializer(serializers.HyperlinkedModelSerializer):
+
+ class Meta:
+ model = Role
+ fields = ('role_id',
+ 'role_type')
+
class SliceSerializer(serializers.HyperlinkedModelSerializer):
site = serializers.HyperlinkedRelatedField(view_name='site-detail')
@@ -83,7 +90,9 @@
'name')
-serializerLookUp = { Site: SiteSerializer,
+serializerLookUp = {
+ Role: RoleSerializer,
+ Site: SiteSerializer,
Slice: SliceSerializer,
Node: NodeSerializer,
Sliver: SliverSerializer,