Skip to content

Commit 6df2d07

Browse files
Update import to match tutorial docs
1 parent 4b73769 commit 6df2d07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

snippets/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from snippets import models
1+
from snippets.models import Snippet
22
from django.contrib.auth.models import User
33
from rest_framework import serializers
44

@@ -8,7 +8,7 @@ class SnippetSerializer(serializers.HyperlinkedModelSerializer):
88
highlight = serializers.HyperlinkedIdentityField(view_name='snippet-highlight', format='html')
99

1010
class Meta:
11-
model = models.Snippet
11+
model = Snippet
1212
fields = ('url', 'highlight', 'owner',
1313
'title', 'code', 'linenos', 'language', 'style')
1414

0 commit comments

Comments
 (0)