from core.models.post_boot import BootScript
from rest_framework import serializers


class BootScriptSerializer(serializers.ModelSerializer):
    created_by = serializers.SlugRelatedField(slug_field='username')
    script_type = serializers.SlugRelatedField(slug_field='name')
    class Meta:
        model = BootScript
        exclude = ('instances', 'applications',)
@@ -37,17 +37,73 @@
 otScript
+, ScriptType%0Afrom core.models.user import AtmosphereUser
 %0A
-
 from res
@@ -255,24 +255,63 @@
 d='username'
+, queryset=AtmosphereUser.objects.all()
 )%0A    script
@@ -364,17 +364,53 @@
 d='name'
-)
+, queryset=ScriptType.objects.all())%0A
 %0A    cla

upgrade BootScriptSerializer to DRF3