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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---