writing a validator for hashtag fields in model of django – SEO
I have a model that has some of fields: class Book(models.Model): title = models.CharField(max_length=160, help_text='H1(SEO)',blank=True) hashtags = models.TextField(blank=True, validators=[validate_hashtags]) the hashtag inputs should be like: #sth #sth #sth in fact I need to have a space after each hashtag except…