Use Tastypie with non integer pk

18 views
Skip to first unread message

Johnny Wellington dos Santos

unread,
Feb 1, 2016, 1:25:26 PM2/1/16
to django-...@googlegroups.com
Hey Guys!

I'm using an app called django-salesforce, that basically map's the
Salesforce API to Django ORM, so I'm trying to use those models with
Tastypie but I'm having trouble because the Salesforce objects didn't
use int for it's pk.

For instance:

ValueError: invalid literal for int() with base 10: '500C000000QTcXgIAL'

Where 500C000000QTcXgIAL is the actual resource pk.

There's something I can do on Tastypie settings to handle it?

Thanks!

Johnny

Seán Hayes

unread,
Feb 6, 2016, 10:04:31 AM2/6/16
to django-...@googlegroups.com
Where is that error being thrown. Traceback? Could you post your Resource and Model?


Johnny

--
You received this message because you are subscribed to the Google Groups "Tastypie" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-tastyp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages