migrating SnippetSerializer to ModelSerializer