[Answer]-Django's makemigrations with RegexValidator throws TypeError

1👍

You have to pass an instance of regex validator instead of type:

name = models.CharField(max_length=50, validators=[RegexValidator(your_regex)])

Leave a comment