Re: Easier to use natural keys.

2014-12-22 Thread Brian Faherty
I think we use a similar idea for serializing and communicating between distributed systems. On our rest serializes, we set a property called lookup_fields. However, if it was standard to use a metadata property from the model, it might allow for some third party libraries to standardize. On S

Re: Easier to use natural keys.

2014-12-22 Thread Brian Faherty
Thanks for re-linking it. I maybe should not have done it as inline. On Sunday, December 21, 2014 6:50:22 PM UTC-5, Russell Keith-Magee wrote: > > > On Sun, Dec 21, 2014 at 10:33 PM, Josh Smeaton > wrote: >> >> Would you mind linking to the ticket you're talking about? Will encourage >> more pe

Re: Easier to use natural keys.

2014-12-21 Thread Josh Smeaton
So he did, Flux must have killed link colours for me. Sorry folks! On Monday, 22 December 2014 10:50:22 UTC+11, Russell Keith-Magee wrote: > > > On Sun, Dec 21, 2014 at 10:33 PM, Josh Smeaton > wrote: >> >> Would you mind linking to the ticket you're talking about? Will encourage >> more people

Re: Easier to use natural keys.

2014-12-21 Thread Russell Keith-Magee
On Sun, Dec 21, 2014 at 10:33 PM, Josh Smeaton wrote: > > Would you mind linking to the ticket you're talking about? Will encourage > more people to participate if they don't have to search Trac for it ;) > He did - as an inline link: https://code.djangoproject.com/ticket/23780 Yours, Russ Mage

Re: Easier to use natural keys.

2014-12-21 Thread Josh Smeaton
Would you mind linking to the ticket you're talking about? Will encourage more people to participate if they don't have to search Trac for it ;) Josh On Monday, 22 December 2014 01:05:14 UTC+11, Brian Faherty wrote: > > Hey Folks, > Teams I have been on in the past have used natural keys exten

Re: Easier to use natural keys.

2014-12-21 Thread Torsten Bronger
Hallöchen! Brian Faherty writes: > [...] > > The solution I propose is a meta field on the model that allows > you to set natural keys there. FWIW, we currently have attached to our models class MyMeta: identifying_field = "number" as a means to set something like "poor man's prima

Easier to use natural keys.

2014-12-21 Thread Brian Faherty
Hey Folks, Teams I have been on in the past have used natural keys extensively. As a result many people have complained about the current way to implement them. Not only do you have to implement two methods that are the reverse of each other in a compatible way, but you also need to remember t