def is_proper_title(value): if value and value != title(value): raise ValidationError('Incorrect title')