title: Django template if choice field
body: <p>im currently trying to figure out how i can check if a status does apply to a users request or not.</p>
  
  <p>models.py</p>
  
  <pre><code>class CategoryRequests(models.Model):
      author = models.ForeignKey(User, on_delete=models.CASCADE)
      status = StatusField()
      STATUS = Choices('Waiting', 'Rejected', 'Accepted')
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def view_profile_categoy_requests_accepted(request, pk=None):
      if pk:
          user = get_user_model.objects.get(pk=pk)
      else:
          user = request.user
      args = {'user': user}
      return render(request, 'myproject/category_request_accepted.html', args)
  </code></pre>
  
  <p>But at the template this seems to be wrong.</p>
  
  <p>template.html</p>
  
  <pre><code>{% if user.categoryrequests.status == 'Waiting' %}
  </code></pre>
  
  <p>Thanks in advance</p>