RE: Please explain this django admin code

2013-01-25 Thread Babatunde Akinyanmi
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 <tundeba...@gmail.com> wrote:

RE: Please explain this django admin code

2013-01-25 Thread Babatunde Akinyanmi
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 <tundeba...@gmail.com> wrote:

Re: Please explain this django admin code

2013-01-25 Thread carlos
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

Re: Please explain this django admin code

2013-01-25 Thread Russell Keith-Magee
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

RE: Please explain this django admin code

2013-01-25 Thread Babatunde Akinyanmi
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 really

Please explain this django admin code

2013-01-25 Thread Tundebabzy
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