Could not google. How can the validator on the model check whether a record is added or edited? Validation is used in the model description:
filename = models.FileField(upload_to='files', validators=[validateDublicateFile])
Could not google. How can the validator on the model check whether a record is added or edited? Validation is used in the model description:
filename = models.FileField(upload_to='files', validators=[validateDublicateFile])
Source: https://ru.stackoverflow.com/questions/227301/
All Articles