I'm using django rest framework and just creating a simple serializer like this:
class PackageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Package
fields = ('id', 'url', 'title','location')
However I get this error:
KeyError at /cerberus/packages/
'id'
How come I can't get the primary key 'id' as part of my serialized data? Thanks for helping!