Friday, July 19, 2013

Re: Best practice - using Django model's in-built id field?

On Fri, Jul 19, 2013 at 4:26 AM, Tom Evans <tevans.uk@googlemail.com> wrote:
> Because of this, I usually add a uuid field as a unique key, but leave
> id as the primary key.

same here.

but only for those tables whose records would be seen by the public.
kinda like 'slugs for non-textual objects'

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate