On Fri, Oct 9, 2009 at 10:38 AM, Aaron <[email protected]> wrote:

>
> On Oct 9, 11:22 am, Javier Guerra <[email protected]> wrote:
> > add a second line to your URL mappigs with the third argument:
> >
> > (r'^(?P<a>[-\w]+)/(?P<b>[-\w]+)/$', 'model_view'),
> > (r'^(?P<a>[-\w]+)/(?P<b>[-\w]+)/(?P<c>[-\w]+)/$', 'model_view')
>
> That's the problem. 'c' is not supposed to be visible in the URL
> itself.  A person is only supposed to see /a/b/ when accessing the
> model's page.
>
>
You seem to be asking for the impossible.  get_abolute_url returns a url
path.  If c is a bit of information that has to be returned by
get_absolute_url, then it has to go in the URL somewhere.  There's no place
else for it to be stashed away and remembered for later when you click on
the link generated from the return value of get_absolute_url.

Karen

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

Reply via email to