You might want to look into the SlugField [1]. It makes sure you only
have url friendly stuff. You can also autopopulate it from another
field in the admin[2]. That way you just type the title and it makes a
slug for you.

One reason to hide pks is that they allow people to learn more about
your site than you might want. They can guess the next user, see what
order things were created in, or even statistics and figure out things
like how many users sign up a month.[3]

[1]http://docs.djangoproject.com/en/dev/ref/models/fields/#slugfield
[2]http://docs.djangoproject.com/en/dev/ref/contrib/admin/
#django.contrib.admin.ModelAdmin.prepopulated_fields
[3]http://www.guardian.co.uk/world/2006/jul/20/
secondworldwar.tvandradio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to