Closed CatInCosmicSpace closed 4 years ago
CatInCosmicSpace, I think so. This work for me:
class RegistrationForm(ModelForm):
class Meta:
model = models.User
field_args = {
'delivery_address': {
'render_kw': {
'placeholder': 'Specify your delivery address',
'rows': '10',
'style': 'resize: vertical; height: auto;'}}}
Hello.
Is there a way to use
render_kw
keyword?For example I use JS data validation library and I would like to set these attributes to StringField:
I looked in the docs, but did not find.