Update django.md

main
Matt Huntington 5 years ago committed by GitHub
parent d20be762f7
commit cafd7a07a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -133,7 +133,7 @@ from .models import Contact
class ContactSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Contact
fields = ('id', 'contact_url', 'name', 'age',)
fields = ('id', 'name', 'age',)
```
set contacts_api/views.py to

Loading…
Cancel
Save