1
You have to pass an instance of regex validator instead of type:
name = models.CharField(max_length=50, validators=[RegexValidator(your_regex)])
Source:stackexchange.com
1
You have to pass an instance of regex validator instead of type:
name = models.CharField(max_length=50, validators=[RegexValidator(your_regex)])