fix ModelSerializer useage

cause of:
from snippets.models import Snippet
This commit is contained in:
Stephan Groß 2012-10-30 13:50:07 +01:00
parent 5865842019
commit 9aa3726009

View File

@ -194,7 +194,7 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer`
class SnippetSerializer(serializers.ModelSerializer):
class Meta:
model = models.Snippet
model = Snippet
fields = ('pk', 'title', 'code', 'linenos', 'language', 'style')