title: Python Django get distinct queryset by month from a DateField
body: <pre><code>class MyModel(models.Model):
      TRANSACTION_TYPE_CHOICES = (
          ('p', 'P'),
          ('c', 'C'),
      )
      status = models.CharField(max_length=50, choices=TRANSACTION_TYPE_CHOICES, default='c')
      user = models.ForeignKey(User, db_index=True, on_delete=models.CASCADE,related_name='user_wallet')
      date = models.DateField(auto_now=True)
      amount = models.FloatField(null=True, blank=True)
  
  
      def __unicode__(self):
          return str(self.id)
  </code></pre>
  
  <p>I am a fresher in <code>Python django</code> and have a little knowledge in <code>Django Rest Framework</code>.</p>
  
  <p>I have a model like above and I want to filter the date field by month and  get distinct queryset by month.....Is there any default way to do this...</p>
  
  <p>Thanks in advance</p>