Answer the question
In order to leave comments, you need to log in
Is it possible to set placeholder in models.CharField?
class NewsLetter(models.Model):
email = models.EmailField()
full_name = models.CharField(max_length=200, placeholder="Text!")
timestamp = models.DateField(auto_now_add=True, auto_now=False)
updated = models.DateField(auto_now_add=False, auto_now=True)
Answer the question
In order to leave comments, you need to log in
placeholder is used on the front, respectively, and you can set it through widgets, that is, in forms.py.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question