Thanks Russ :)
Sent from my Windows Phone
-Original Message-
From: Russell Keith-Magee
Sent: 1/25/2013 4:08 PM
To: django-users@googlegroups.com
Subject: Re: Please explain this django admin code
On Fri, Jan 25, 2013 at 10:36 PM, Tundebabzy wrote:
I'll be really gratef
Thanks Russ :)
Sent from my Windows Phone
--
From: Russell Keith-Magee
Sent: 1/25/2013 4:08 PM
To: django-users@googlegroups.com
Subject: Re: Please explain this django admin code
On Fri, Jan 25, 2013 at 10:36 PM, Tundebabzy wrote:
> I'll be really gra
excellent explanation did not know anything about it
thank Russ :)
On Fri, Jan 25, 2013 at 9:08 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:
>
>
> On Fri, Jan 25, 2013 at 10:36 PM, Tundebabzy wrote:
>
>> I'll be really grateful if someone can take the time to explain these
>> line
On Fri, Jan 25, 2013 at 10:36 PM, Tundebabzy wrote:
> I'll be really grateful if someone can take the time to explain these
> lines of code. Its from contrib.admin.options
>
> def wrap(view):
> def wrapper(*args, **kwargs):
> return self.admin_site.admin_view(v
I found it. Django.contrib.admin.sites defines AdminSite which provides the
admin_view method
Sent from my Windows Phone
--
From: Tundebabzy
Sent: 1/25/2013 3:36 PM
To: django-users@googlegroups.com
Subject: Please explain this django admin code
I'll be r
I'll be really grateful if someone can take the time to explain these lines
of code. Its from contrib.admin.options
def wrap(view):
def wrapper(*args, **kwargs):
return self.admin_site.admin_view(view)(*args, **kwargs)
# This is the brain twisting line
6 matches
Mail list logo