On Mar 6, 10:40 am, bruno desthuilliers
wrote:
> On Mar 6, 7:07 am, Aryeh Leib Taurog wrote:
>
> > Sometimes self.get_another_object() returns an object which doesn't
> > have attribute 'x' so my_title() raises an AttributeError exception.
> > Under Django 1.2.4 the template renders as 'Generic T
On Mar 6, 7:07 am, Aryeh Leib Taurog wrote:
> Let's say I have the following code:
>
> class MyClass:
> def my_title(self):
> if 'some string' not in self.get_another_object().x:
> return 'Specific Title'
>
> Then I have a template:
>
> {% with instance_of_myclass as obj %
On Mar 6, 7:41 am, Russell Keith-Magee
wrote:
> On 06/03/2012, at 12:56 PM, Aryeh Leib Taurog wrote:
>
> > Did exception handling in templates change somewhere between Django
> > 1.2.x and 1.3.x?
>
> > I have a callable which is displayed in a template. Sometimes it
&g
On 06/03/2012, at 12:56 PM, Aryeh Leib Taurog wrote:
> Did exception handling in templates change somewhere between Django
> 1.2.x and 1.3.x?
>
> I have a callable which is displayed in a template. Sometimes it
> raises AttributeException. Under 1.2.x the callable was treate
Did exception handling in templates change somewhere between Django
1.2.x and 1.3.x?
I have a callable which is displayed in a template. Sometimes it
raises AttributeException. Under 1.2.x the callable was treated as an
empty string, but under 1.3.1 this results in a 500 response. This is
a
5 matches
Mail list logo