1. from snippets.serializers import SnippetSerializer
    2. serializer = SnippetSerializer()
    3. print(repr(serializer))
    4. # title = CharField(allow_blank=True, max_length=100, required=False)
    5. # code = CharField(style={'base_template': 'textarea.html'})
    6. # language = ChoiceField(choices=[('Clipper', 'FoxPro'), ('Cucumber', 'Gherkin'), ('RobotFramework', 'RobotFramework'), ('abap', 'ABAP'), ('ada', 'Ada')...
    7. # style = ChoiceField(choices=[('autumn', 'autumn'), ('borland', 'borland'), ('bw', 'bw'), ('colorful', 'colorful')...
    • An automatically determined set of fields.