Re: Linking Back to Home Page from Template

2009-04-10 Thread Joe Sr.
On Apr 10, 1:50 pm, Anthony wrote: > Hi Everyone, > > This is really basic and I tried looking up this question since it > can't be a new one, but the closest thread I found was this one: > > http://groups.google.com/group/django-users/browse_thread/ > thread/d2524403e13fcd22/515358199feebc68?lnk

Re: Different admin registry behavior with mod_python versus dev server

2009-04-10 Thread Joe Sr.
On Apr 10, 1:27 pm, Alex Gaynor wrote: > On Fri, Apr 10, 2009 at 2:24 PM, Joe Sr. wrote: > > > I have been using this little trick to get a list of all my model > > classes that are subclasses of Component: > > > component_list = [] > > > for k in django.con

Different admin registry behavior with mod_python versus dev server

2009-04-10 Thread Joe Sr.
I have been using this little trick to get a list of all my model classes that are subclasses of Component: component_list = [] for k in django.contrib.admin.site._registry: if issubclass(k, Component): component_list.append(k) It works splendidly under the development server or usi

Re: Execute function after Add in admin site

2008-10-16 Thread Joe Sr
On Oct 13, 1:53 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 13 oct, 18:11, Joe Sr <[EMAIL PROTECTED]> wrote: > > > I am working on an "Issues" application and I want to execute code to > > send an e-mail to an assignee after an issue has been ad

Execute function after Add in admin site

2008-10-13 Thread Joe Sr
I am working on an "Issues" application and I want to execute code to send an e-mail to an assignee after an issue has been added. I saw that there are signals I can intercept for pre- and post-save, but how could I only limit to insert and not update events? --~--~-~--~~