Overriding admin/actions.html

2013-08-16 Thread Chris Stoyles
Hi All, I've been hunting around (without luck) for a way to override the admin/actions.html template in my app. I've tried overriding it globally in templates/admin as well as app specific in [app]/templates/admin. If anyone out there can give me a quick hint on where to look or what I'm doin

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-09 Thread Chris Stoyles
The only log entries I want committed are the ones that tell me why a roll-back occurred. What you've said below sounds like a good enough solution, thanks for all your input. Cheers, Chris On Mon, Jun 8, 2009 at 11:38 PM, Karen Tracey wrote: > On Mon, Jun 8, 2009 at 5:39 AM, Chris

Re: Problems with view... not sure how to get the data to my template

2009-06-08 Thread Chris Stoyles
Hi Mitch, I haven't read through your example in detail, but just glancing over it I think that I can see the mistake you're making The problem is that there is no "number_list" key in your context, there is only a "range" and "range_list" key (take a look at where you call "render_to_response").

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-08 Thread Chris Stoyles
Hi Thomas, The reason I want to be able to rollback (but still commit by log entries) is because it is sometimes valid for this particular view to throw an exception and fail. If this happens, I need to rollback any model objects that have been created and saved up to the point at which the view f

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-07 Thread Chris Stoyles
Hi Karen, Yes it does look as though I am using them backwards. I am at a bit of a loss as to how to get around this problem, though it is Monday morning and my brain isn't fully into gear yet. Can anyone think of a way for me to bypass the transaction management? I believe that even if I execute