Re: Strange Template/Model Error

2006-11-27 Thread Steve Wedig
Fixed this problem. That's the second time I've searched for 1 hour+, wrote an email, and then quickly figured out a solution. I wonder if writing the email helps... Anyway, the problem seemed to be that I was overriding the __getitem__ method to make my model instances work more like a sequence.

Strange Template/Model Error

2006-11-27 Thread Steve Wedig
Hello, I am using multiple inheritance on a model. I'm just subclassing Model and subclassing a class that acts like a mixin. The mixin only adds or overrides methods. Anyway, this works fine with the python api, but is causing problems inside a template. When inside a template, I get an error i