What I want to do is that when you have more than 300 digits you can't touch the "Bloob" button or something like that. What is on the left is a counter with javascript. The models is this
class Post(models.Model):
timestamp = models.DateTimeField(default=timezone.now)
content = models.TextField(max_length=300)
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='posts')
This is the PostForm
class PostForm(forms.ModelForm):
content = forms.CharField(widget=forms.Textarea(attrs={
'class': 'form-control w-100',
'id': 'contentsBox',
'rows': '3',
'placeholder': '¿Qué está pasando?'
}))