#!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function

__author__ = 'xuebk'
from rest_framework import serializers
# from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES

class SnippetSerializer(serializers.Serializer):
    pk = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True, max_length=100)
e53ed353f8d60f767da16dde5043418c3cf4b380
<mask token>


class SnippetSerializer(serializers.Serializer):
    <mask token>
    <mask token>

<mask token>


class SnippetSerializer(serializers.Serializer):
    pk = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True,
        max_length=100)

<mask token>
__author__ = 'xuebk'
<mask token>


class SnippetSerializer(serializers.Serializer):
    pk = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True,
        max_length=100)

from __future__ import print_function
__author__ = 'xuebk'
from rest_framework import serializers


class SnippetSerializer(serializers.Serializer):
    pk = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True,
        max_length=100)

#!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function

__author__ = 'xuebk'
from rest_framework import serializers
# from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES

class SnippetSerializer(serializers.Serializer):
    pk = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True, max_length=100)