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/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to