class MyModel(Part):
@classmethod
def excluded_modification_fields(cls):
return cls().attributes
class MyModel(Part):
def is_promotable(self):
if condition_is_respected:
return super(MyModel, self).is_promotable()
else:
return False
ctrl = PartController.create("Part_00011", "Part", "a", user, {"group":group})