from core.models.instance import InstanceStatusHistory
from rest_framework import serializers


class InstanceStatusHistorySerializer(serializers.ModelSerializer):
    instance = serializers.SlugRelatedField(slug_field='provider_alias')
    size = serializers.SlugRelatedField(slug_field='alias')

    class Meta:
        model = InstanceStatusHistory
@@ -47,16 +47,55 @@
 sHistory
+, Instance%0Afrom core.models import Size
 %0Afrom re
@@ -267,16 +267,49 @@
 r_alias'
+, queryset=Instance.objects.all()
 )%0A    si
@@ -360,16 +360,45 @@
 ='alias'
+, queryset=Size.objects.all()
 )%0A%0A    c

upgrade InstanceStatusHistorySerializer to DRF3