from django import forms
from .models import MyModel


class MyModelForm(forms.ModelForm):


    class Meta:
        model = MyModel
widgets = {'name': forms.TextInput(attrs={'placeholder': 'Name'}),
    'description': forms.Textarea(attrs={'placeholder':
    'Enter description here'})}
How do I add a placeholder on a CharField in Django?