On Fri, 2008-05-16 at 14:51 -0700, Legioneer wrote:
> It looks that this is not the case. The problem seems to be more
> general. When I add abstract=True to ANY model I receive the same
> error. Example:
>
> class OrderItem(models.Model):
> num = models.IntegerField(default=1)
> timestamp = models.DateTimeField(auto_now=True)
>
> class Meta:
> abstract = True
>
%s(class)s will not do what you want:
>>> '%s(class)s' % {'class': 'WhatEver'}
"{'class': 'WhatEver'}(class)s"
>>> '%(class)s' % {'class': 'WhatEver'}
'WhatEver'
Are you sure your django version is recent enough? The queryset-refactor
branch merge did not happen a long time ago, an old subversion checkout
or even a released django version (f.e. 0.96.1) won't do.
--
http://spinlock.ch/blog/