Hi,
i have a problem with the order_with_respect_to field in the
Meta-Class. Editing the Model in the Admin interface (Saving
new
levels) i get the exception:
You can't specify target table 'heracles_level' for update
in FROM
clause
If i remove the order_with_respect_to field, it works fine.
The Model:
class Attribute(models.Model):
Name = models.CharField("Name of attribute
displayed",
maxlength=200, core=True)
class Admin:
list_display = ('Name', 'BlazeType')
pass
class Level(models.Model):
IsAttrib = models.ForeignKey(Attribute,
edit_inline=models.TABULAR,
min_num_in_admin=6, num_in_admin=6, num_extra_on_change=6)
class Meta:
order_with_respect_to = 'IsAttrib'
Has someone an idea?
Daniel
--~--~---------~--~----~------------~-------~--~----~
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
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|