Take a look at SlugField in the model documentation to do what you want.

Tom

On Sat, Apr 12, 2008 at 12:28 AM, ydjango <[EMAIL PROTECTED]> wrote:

>
> I am displaying a list of houses and on clicking on one of the houses
> I want to show/edit details
>
> currently I am using constructing url as /house/edit/123/
> where 123 is house data base primary key for that house.
>
> Can exposing the primary key in url be any security issue?
>
> (r'^house/edit/(\d+)/$',editHouse)
>
> Is there alternative way without exposing the primary key in url?
>
> Ashish
> >
>


-- 
Tom Badran
http://badrunner.net

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to