Skip to content

Commit

Permalink
Update vle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xbaro committed Oct 14, 2021
1 parent eeaca3d commit b24e42f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tesla_ce/apps/api/v2/serializers/vle/vle.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@

from tesla_ce.models import VLE

from tesla_ce.apps.api.v2.serializers import InstitutionSerializer


class VLESerializer(serializers.ModelSerializer):
"""VLE serialize model module."""
type = serializers.CharField(source='get_type_display')
institution = InstitutionSerializer(many=False)

class Meta:
model = VLE
exclude = ["lti", "created_at", "updated_at", "institution"]
exclude = ["lti", "created_at", "updated_at"]

0 comments on commit b24e42f

Please sign in to comment.