Re: SlugField is not unique?

2006-09-27 Thread DavidA
Gábor Farkas wrote: > hi, > > i've just checked and SlugField does not imply unique=True. > > i somehow always assumed that it does. > > so before i go and add the unique=True to all my SlugFields, > > is there any reason to have non-unique SlugFields? > > a

Re: SlugField is not unique?

2006-09-27 Thread Malcolm Tredinnick
On Wed, 2006-09-27 at 09:18 +0200, Gábor Farkas wrote: > hi, > > i've just checked and SlugField does not imply unique=True. > > i somehow always assumed that it does. > > so before i go and add the unique=True to all my SlugFields, > > is there any reason to

Re: SlugField is not unique?

2006-09-27 Thread zenx
Hi Gábor, I think it's just for making it more flexibile, but in the most cases you will use unique=True in your SlugFields. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

SlugField is not unique?

2006-09-27 Thread Gábor Farkas
hi, i've just checked and SlugField does not imply unique=True. i somehow always assumed that it does. so before i go and add the unique=True to all my SlugFields, is there any reason to have non-unique SlugFields? as far as i understand, SlugFields are mostly used in URLs which imho