Re: Override value of a TextField class method.

2020-01-07 Thread Fabio da Silva Pedro
OK, thank's for this! Em ter., 7 de jan. de 2020 às 03:03, Mohamed A escreveu: > Hint:.. __init__ is a constructor not any method. > > Le lun. 6 jan. 2020 à 23:02, Fabio da Silva Pedro < > fabio.silvape...@gmail.com> a écrit : > >> Easy. You need to provide attrs as dict to the new object. >>>

Re: Override value of a TextField class method.

2020-01-06 Thread Mohamed A
Hint:.. __init__ is a constructor not any method. Le lun. 6 jan. 2020 à 23:02, Fabio da Silva Pedro < fabio.silvape...@gmail.com> a écrit : > Easy. You need to provide attrs as dict to the new object. >> >> > Ok, I thought about that too, but I don't know how to do it, I copied the > whole

Re: Override value of a TextField class method.

2020-01-06 Thread Fabio da Silva Pedro
> > Easy. You need to provide attrs as dict to the new object. > > Ok, I thought about that too, but I don't know how to do it, I copied the whole method and pasted it into my model and tried to access its superclass, but I didn't get it! Maybe I'm doing something wrong yet. Would you have any

Re: Override value of a TextField class method.

2020-01-06 Thread Mohamed A
Easy. You need to provide attrs as dict to the new object. Le lun. 6 jan. 2020 à 21:36, Fabio da Silva Pedro < fabio.silvape...@gmail.com> a écrit : > Hi everyone! > > this is an excerpt line from my model > > observacoes = models.TextField(null=True, blank=True, > verbose_name='Informações

Override value of a TextField class method.

2020-01-06 Thread Fabio da Silva Pedro
Hi everyone! this is an excerpt line from my model observacoes = models.TextField(null=True, blank=True, verbose_name='Informações complementares') How i do override a field type *TextField* and change your internal *class value Textarea*, this is a widget from TextField Class and override