I'm new to django and I hope you can guide me with this, I have a model definition like this:
class Documents(models.Model):
name = models.CharField(max_length=255)
date = models.DateField()
path = models.FileField(upload_to='documents/')
But I need to validate it as a valid PDF file, could you guide me how to do that?