Hi,
_manipulator_validate_ is not used in the admin interface when editing an object inline?
Below the model being used.
When Property is edited inline with Item, _manipulator_validate_value is not used.
When Property is edited by itself, _manipulator_validate_value is used normaly.
Wietze.
class Item(meta.Model):
name = meta.CharField(maxlength=20)
def __repr__(self): return self.name
class META:
admin = meta.Admin()
class Property(meta.Model):
item = meta.ForeignKey(Item, edit_inline=meta.TABULAR)
name = meta.CharField(maxlength=20, core=True)
value = meta.CharField(maxlength=20)
def __repr__(self): return self.name
def _manipulator_validate_value(self, field_data, all_data):
print "_manipulator_validate_value() for", field_data
def _pre_save(self):
print "_pre_save() for", self
class META:
admin = meta.Admin()