For example, in the original class I got this:
............
@classmethod
def __setup__(cls):
super(My_class, cls).__setup__()
cls._error_messages.update({
'only_capital_letters':
'You have to write the field on CAPITAL LETTERS',
})
..........
On the extension, I need somthing like this (I know this is the wrong way):
............
@classmethod
def __setup__(cls):
super(My_class, cls).__setup__()
cls._error_messages.update({
'only_capital_letters': continue,
})
..........
Thanks. Regards
Francisco
try this : cls._error_messages['only_capital_letters'] = 'your text'
Thank you, but that's not what I am lookin for. I need to change the behaviour itself.
Best regards
Francisco