Hello,

I have a field defined as below : 

Field('id_indra', length=5, label=T('ID Indra'), notnull=False, 
requires=[REQUIRED, MAX_5, IS_MATCH(r'^[a-zA-Z0-9]{5}$')])

Is it is possible to intercept all inserts / updates over this field and do 
a zfill() before the accion takes place? So, if the field is '5', they it 
would be completed with zeroes with a result of '00005' before insert / 
update.

Thanks in advance

Regards,
Santiago

Reply via email to