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.
>>>
>
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 method
>
> 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 exa
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 comp
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 th
5 matches
Mail list logo