Re: Django default PK type setting

2016-09-05 Thread Emett Speer
ver, I do think it has some merits. An obvious benefit to the > consistency is when you are using another framework with Django which makes > certain assumptions about the way you identify objects. Some front end > frameworks prefer guids to integers, as would some security protocols. >

Re: Django default PK type setting

2016-09-05 Thread Emett Speer
d > assumes integers. > > However, I do think it has some merits. An obvious benefit to the > consistency is when you are using another framework with Django which makes > certain assumptions about the way you identify objects. Some front end > frameworks prefer guids to integer

Re: Django default PK type setting

2016-09-01 Thread Emett Speer
I agree with you in recommending against using `.filter(pk=1)` in testing. What do you think of the idea though. Do you think it would be worth looking into adding a flag for new projects or not worth the time/effort to add it. On Wednesday, August 31, 2016 at 10:11:55 PM UTC-7, Shai Berger wro

Re: Django default PK type setting

2016-08-31 Thread Emett Speer
or this. Permissions and Groups are > unlikely to need uuids, and building such a system to swap out the actual > type for a new one seems like massive overkill just to keep things > consistent. > > I'd be -0 on such a feature. > > On Wednesday, 31 August 2016 06:43:02

Re: Django default PK type setting

2016-08-30 Thread Emett Speer
*Blog:* http://aresou.net | *Github:* https://github.com/aresowj | *Stack > Overflow:* http://stackoverflow.com/users/5183727/ares-ou > > Ares Ou > > On Tue, Aug 30, 2016 at 11:43 AM, Tim Graham > wrote: > >> Sounds quite complicated. In particular, how could we reason

Re: Django default PK type setting

2016-08-30 Thread Emett Speer
st 30, 2016 at 11:43:17 AM UTC-7, Tim Graham wrote: > > Sounds quite complicated. In particular, how could we reasonably test that > contrib apps work with arbitrary PKs? > > On Tuesday, August 30, 2016 at 2:32:18 PM UTC-4, Emett Speer wrote: >> >> Hello Everyone, &

Django default PK type setting

2016-08-30 Thread Emett Speer
Hello Everyone, I would like to propose the exploration of adding a default PK setting do Django. This could be a flag at project creation time or a setting to be set before the first migration takes place. This would allow the developer to set the default PK in Django to something like UUID.