title: Django query, greater than and lower than are not working
body: <p>I have the following table:</p>
  
  <pre><code>class OverallAdvise(mixins.OrdMixin, mixins.EqMixin, models.Model):
      section = models.ForeignKey('quest.Section',
                                  on_delete=models.CASCADE,
                                  related_name='section_owner')
      range_start = models.IntegerField(blank=True, null=True)
      range_end = models.IntegerField(blank=True, null=True)
      get_advise = models.CharField(max_length=500)
  </code></pre>
  
  <p>Then, in serializer I'm trying to select the <code>get_advise</code> based on a calculated score.</p>
  
  <p>My query is:</p>
  
  <pre><code>get_overall_advise = OverallAdvise.objects.filter(section_id = section_id, range_start__gte = section_overall_score, range_end__lte = section_overall_score).values("get_advise")
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p>When I use only <code>section_id</code> in my query, it's working.</p>
  
  <p><code>section_id=6</code> and <code>section_overall_score=8</code> are given.</p>
  
  <p>I need something like <code>range_start&lt;=6&lt;=range_end</code>.</p>
  
  <p>This is an instance of my <code>mysql</code> table: <a href="https://i.stack.imgur.com/Auc1a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Auc1a.png" alt="enter image description here"></a></p>
  
  <p>Can you help me please?</p>