You're right Jonathan, that was it. Don't know why I left it there in the first place (no reason to match one or more char's for the slash `/?$` anyway).
I hadn't noticed it since I was using the get_absolute_url in the templates. Thanks. On Mar 31, 2:51 pm, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On Mon, Mar 31, 2008 at 12:35 PM, Panos Laganakos > > > > <[EMAIL PROTECTED]> wrote: > > > I've switched my code from: > > def get_absolute_url(self): > > return '/store/products/%s' % self.slug > > > to: > > @models.permalink > > def get_absolute_url(self): > > return ('django.views.generic.list_detail.object_detail', > > (), { > > 'slug': self.slug, > > }) > > > and my urls show a following /? > > ie: > > > /store/products/my-product0 > > > became > > > /store/products/my-product0/? > > > Is this because I'm passing an empty positional argument? If so, any > > way for it to disappear? > > Does your URLConf regular expression end with a "/?" (I'm only adding > this aside to avoid madness and confusion, quoted punctuation fans)? > > Dropping the question mark will fix this. > > Regards, > Jonathan. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---