阅读背景:

当uuuidfield是主键时,没有使用UUID返回URI

来源:互联网 

I'm using Django and tastypie to develop a REST API, with a primary key that is a UUIDField from django_extensions. However, making the primary key a UUID isn't playing nicely with tastypie: when I create a resource with POST, the URI it returns is an int, not the UUID, and the provided URI is then unusable since the rest of the API expects the UUID to access a resource.I'm using Django and tastypie to develop a REST




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: