I tried to use the new permalink decorator to decouple the model from
the urlconf structure but it doesn't work correctly. Here's an
example:

    def get_absolute_url(self):
        return "/foo/%d" % self.id

changed to:

    def get_absolute_url(self):
        return ('path.of.the.correct.view', str(self.id))
    get_absolute_url = permalink(get_absolute_url)

And what I get from the latter is "/foo/1" instead of "/foo/13"

I tried the same with another model and I always get the first
character of the latest part of the path (eg "/foo/s" instead of
"/foo/slug").

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair

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