title: Django Rest filtering via query params
body: <p>I am filtering by query params to find the user that matches the phone number in the query params.</p>
  
  <p>Model:</p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import User
  from phonenumber_field.modelfields import PhoneNumberField
  
  
  class UserProfile(models.Model):
      user = models.OneToOneField(User)
      profile_image = models.ImageField(upload_to='static/user_images', blank=True, null=True)
      phone_number = PhoneNumberField(unique=True)
      notifications = models.BooleanField(default=True)
      group_notifications = models.BooleanField(default=True)
      payment_info = models.CharField(max_length=100, default="PLACEHOLDER TEXT")
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>class UsersList(generics.ListAPIView):
      serializer_class = UserSerializer
  
      def get_queryset(self):
           queryset = User.objects.all()
           phone_number = self.request.query_params.get('phone_number', None)
          if phone_number is not None:
               queryset = queryset.filter(userprofile_phone_number=phone_number)
          return queryset
  </code></pre>
  
  <p>Urls:</p>
  
  <pre><code>from django.conf.urls import include, url
  from users import views
  
  urlpatterns = [
  
       url(r'find$', views.UsersList.as_view()),
  
  ]
  </code></pre>
  
  <p>and this is the error I get when entering this: <a href="http://localhost:9000/find?phone_number=+447865940489" rel="nofollow">http://localhost:9000/find?phone_number=+447865940489</a></p>
  
  <pre><code> FieldError at /api/v1/user/find
  Cannot resolve keyword 'userprofile_phone_number' into field. Choices are: auth_token, date_joined, email, emailaddress, event, eventmembersattending, first_name, groupmember, groups, id, is_active, is_staff, is_superuser, last_login, last_name, logentry, password, request, socialaccount, suggestion, tags, user_permissions, username, userprofile
  </code></pre>
  
  <p>So what have I done wrong?</p>
  
  <p>EDIT: Error solved but now I get an empty response</p>