title: Django Field Regex Validation
body: <p>I am trying to create a model to store an hashtag.</p>
  
  <p>The validator doesn't seem to be working, making the field accept all inputs, and I can't find the solution.</p>
  
  <p>Here is my model:</p>
  
  <pre><code>class Hashtags(models.Model):
      hashtag_validator = RegexValidator(r'^[#](\w+)$', "Hashtag doesn't comply.")
      hashtag_id = models.AutoField(primary_key=True)
      hashtag_text = models.CharField(max_length=100, validators=[hashtag_validator],   unique=True)
  
  def get_id(self):
      return self.hashtag_id
  
  def get_text(self):
      return self.hashtag_text
  </code></pre>