nickesk / pyactiveresource

Automatically exported from code.google.com/p/pyactiveresource
Other
0 stars 0 forks source link

[PATCH] Add support for primary_key other than id. #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It should be possible to have a primary key other than "id", which can be done 
in ActiveResource.  With the attached patch, this can be done by setting 
_primary_key in the derived class to a value other than "id".

Original issue reported on code.google.com by dylan.ah...@gmail.com on 23 Oct 2011 at 3:01

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching the updated patch with fixes to the implementation and adds tests.

Original comment by dylan.ah...@gmail.com on 3 Apr 2012 at 12:58

Attachments:

GoogleCodeExporter commented 9 years ago
Patch committed. Thanks again.

Original comment by mark.r.r...@gmail.com on 19 Apr 2012 at 2:58