Add tests for #310

This commit is contained in:
Cristi Vijdea
2019-03-02 05:35:10 +02:00
parent c593b3fcfb
commit b4900ebd6a
4 changed files with 16 additions and 3 deletions
+1
View File
@@ -10,6 +10,7 @@ from snippets.models import LANGUAGE_CHOICES, STYLE_CHOICES, Snippet
class LanguageSerializer(serializers.Serializer):
name = serializers.ChoiceField(
choices=LANGUAGE_CHOICES, default='python', help_text='The name of the programming language')
read_only_nullable = serializers.CharField(read_only=True, allow_null=True)
class Meta:
ref_name = None