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
-~----------~----~----~----~------~----~------~--~---

Reply via email to