On Fri, Jul 9, 2010 at 8:47 AM, Stijn Hoop <st...@sandcat.nl> wrote:
> This is rather impossible without natural keys, for I cannot know the
> maximum ID of any primary key of tables that they have added data to.
> However with natural keys I can do away with recording the numerical
> ID of an object so this should be possible.


the best solution isn't natural keys (which are so very seldom a good
idea); what you need is UUIDs.

there are a couple of wontfix'd tickets on this theme, mostly because
the feeling that this doesn't belong to core when it can easily be
added by a custom fieldclass.

two implementations:

http://djangosnippets.org/snippets/1262/
http://www.davidcramer.net/code/420/improved-uuidfield-in-django.html


-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to