title: django.core.exceptions.FieldError: Unsupported lookup 'quarter' for DateTimeField or join on the field not permitted
body: <p>I am trying to filter objects by date of creation and sort them quarterly.</p>
  
  <p>I have a sample model like this </p>
  
  <pre><code>class Asset(models.Model):
      created_at = models.DateTimeField(auto_now_add=True)
  </code></pre>
  
  <p>then I have another model that connects with the Assets model this way,</p>
  
  <pre><code>class Portfolio(models.Model):
      assets = models.ManyToManyField(Asset)
  
   // i want to find all assets created by quarter and here is what I tried
  
      def assets_total_quarterly(self):
          q1= self.assets.filter(created_at__quarter=1)
          return q1
  </code></pre>
  
  <p>I get this error</p>
  
  <p><code>django.core.exceptions.FieldError: Unsupported lookup 'quarter' for DateTimeField or join on the field not permitted.
  </code></p>
  
  <p>I followed the example here and have looked up similar questions but none solves my problem
  <a href="https://docs.djangoproject.com/en/2.2/ref/models/querysets/#quarter" rel="nofollow noreferrer">https://docs.djangoproject.com/en/2.2/ref/models/querysets/#quarter</a></p>