mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
fix ModelSerializer useage
cause of: from snippets.models import Snippet
This commit is contained in:
parent
5865842019
commit
9aa3726009
|
@ -194,7 +194,7 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer`
|
||||||
|
|
||||||
class SnippetSerializer(serializers.ModelSerializer):
|
class SnippetSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.Snippet
|
model = Snippet
|
||||||
fields = ('pk', 'title', 'code', 'linenos', 'language', 'style')
|
fields = ('pk', 'title', 'code', 'linenos', 'language', 'style')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user