Ошибка при использовании поля базового класса в мета-опции уникального подкласса
Используя следующий код:
class Organization(models.Model):
name = models.CharField(max_length="100",)
alias = models.SlugField()
...
class Division(Organization):
parent_org = models.ForeignKey(Organization)
class Meta:
unique_together=['parent_org', 'alias']
...
Попытка syncdb выдает мне эту ошибку:
Error: One or more models did not validate:
organizations.division: "unique_together" refers to alias. This is not in the
same model as the unique_together statement.
Любая помощь приветствуется,
Спасибо,
Эрик