On Fri, Feb 27, 2009 at 3:13 PM, Paul Waldo <p...@waldoware.com> wrote:

>
> ----- "Paul Waldo" <p...@waldoware.com> wrote:
> > > Hi all,
> >
> > I'm writing an app where most of my functionality is straight Admin
> pages.  When viewing the detail page for an object, I can select the "View
> on site" button.  This will take me to some custom processing, but when this
> is done, I want to go back to that original Admin page where I can edit the
> object.  How might I get the URL of this edit page?  Obviously not as simple
> as using a URL from Admin's urls.py...   Thanks in advance!
> >
> > Paul
> >
>
> FYI, here is what I am doing now:
>
> return HttpResponseRedirect('/admin/invoice/invoice/%s/' % object_id)
>
> This works, but pretty ugly...
>
> >
>
If you are on 1.0 there is no way to reverse urls, if you are on trunk then
they follow the following schemes:
http://github.com/alex/django/commit/88ef18b7f681e7d312a26c124717e59d0cefa278
(see the bit at the end)  these charts will eventually make their way into
the official docs.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to