Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread Ramiro Morales
On Sun, Jul 19, 2009 at 1:53 PM, mrsource wrote: > > Ok, I noted the same thing the reverse('admin:view_tree') works, >  then need a pattern to be named when self.admin_site.admin_view() > decorator is used? > I don't think the admin_view() wrapper has anything to do with the

Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread mrsource
Ok, I noted the same thing the reverse('admin:view_tree') works, then need a pattern to be named when self.admin_site.admin_view() decorator is used? On 19 Lug, 18:30, Alex Gaynor wrote: > On Sun, Jul 19, 2009 at 6:03 AM, mrsource wrote: > > > I'm

Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread Alex Gaynor
On Sun, Jul 19, 2009 at 6:03 AM, mrsource wrote: > > I'm using the current trunk version and I have a similar issue with > the reverse function: > > - I defined a get_urls() method for one of my models whose I have > written a custom admin page. > - From my view I try to

Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread mrsource
I'm using the current trunk version and I have a similar issue with the reverse function: - I defined a get_urls() method for one of my models whose I have written a custom admin page. - From my view I try to reverse one of this pattern with the "admin:" prefix and it works but if I wrap the

Re: A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Vasil Vangelovski
Yeah, I was confused mostly about the stuff with the colon because I didn't pay much attention when reading about namespaced urls the new docs. Thanks On Fri, Jul 17, 2009 at 10:49 PM, Michael wrote: > On Fri, Jul 17, 2009 at 4:27 PM, Vasil Vangelovski

Re: A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Michael
On Fri, Jul 17, 2009 at 4:27 PM, Vasil Vangelovski wrote: > > Sorry, it was probably my missunderstanding of some details in the > docs. I changed the initialization of my admin site so it doesn't have > a name and what I was trying to do works now. But anyway, if my admin

Re: A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Vasil Vangelovski
Sorry, it was probably my missunderstanding of some details in the docs. I changed the initialization of my admin site so it doesn't have a name and what I was trying to do works now. But anyway, if my admin site was initialized like so site = MyAdminSite('admin') what code is supposed to give me

Re: A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Vasil Vangelovski
Yes it does work, I've tried this with a brand new project in the same virtualenv. Reverese resolution of urls for the AdminSite in django.contrib.admin does work with the latest trunk revision. Here's simplest situation where I'm having a problem: I have an app called admin in my project which

Re: A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Michael
On Fri, Jul 17, 2009 at 10:28 AM, Vasil Vangelovski wrote: > > I'm using svn trunk version of django (rev. #11263). In my project I > have only one admin site registered in the urlconf. This admin site is > a subcalss of django.contrib.admin.sites.AdminSite and is

A question about reverse url lookups for admin site in svn version

2009-07-17 Thread Vasil Vangelovski
I'm using svn trunk version of django (rev. #11263). In my project I have only one admin site registered in the urlconf. This admin site is a subcalss of django.contrib.admin.sites.AdminSite and is instantiated with the name 'admin'. I'm trying to use reverse url lookups for the admin site as