title: Field error , trying to reference custom user model
body: <p>Got no idea what's going on here. First time using a custom user model so I'm having trouble referencing the user object in views. I know I need to use 'get_user_model' , but I'm not sure how to implement it. I tried doing a couple things but I'm still stuck. </p>
  
  <p><strong>error</strong></p>
  
  <pre><code>FieldError at /mingle/
  Cannot resolve keyword 'user' into field. Choices are: date_joined, description, email, given_vote, id, is_active, is_admin, is_staff, is_superuser, last_login, logentry, matches, password, photo, username, uservote
  Request Method: GET
  Request URL:    http://localhost:8000/mingle/
  Django Version: 2.2.3
  Exception Type: FieldError
  Exception Value:    
  Cannot resolve keyword 'user' into field. Choices are: date_joined, description, email, given_vote, id, is_active, is_admin, is_staff, is_superuser, last_login, logentry, matches, password, photo, username, uservote
  Exception Location: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/db/models/sql/query.py in names_to_path, line 1420
  Python Executable:  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
  Python Version: 3.7.3
  Python Path:    
  ['/Users/papichulo/Documents/DatingApp',
   '/Library/Frameworks/Python.framework/Versions/3.7/lib/python37.zip',
   '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7',
   '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload',
   '/Users/papichulo/Library/Python/3.7/lib/python/site-packages',
   '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages']
  Server time:    Fri, 3 Apr 2020 23:46:27 +0000
  </code></pre>
  
  <p>Error at description = Profile.objects.get(user=request.user).description</p>
  
  <p>**views.py, part that's giving me an error **</p>
  
  <pre><code>from __future__ import unicode_literals
  from django.shortcuts import render, redirect, get_object_or_404
  from django.http import HttpResponseRedirect, Http404
  from django.urls import reverse
  from django.contrib.auth.decorators import login_required
  from django.contrib.auth import logout
  from django.contrib.auth import login, logout, authenticate
  from dating_app.forms import RegistrationForm,ProfileUpdateForm
  from .models import Profile
  
  from django.contrib.auth.decorators import login_required
  from django.contrib.auth.models import User
  import os
  from django.core import serializers
  import json
  
  from django.contrib.auth import get_user_model
  
  User = get_user_model()
  
  
  def mingle(request):
  
  try:
      user = (Profile.objects.exclude(id=request.user.id).exclude(uservote__voter=request.user).order_by('?')[0])
  except IndexError:
      user = None
  print(User.username)
  try:
      description = models.Profile.objects.get(user=request.user).description
  except models.Profile.DoesNotExist:
      create = Profile.objects.get_or_create(user = request.user)
      return redirect('profile')
  
  match = models.Profile.objects.get(user=request.user).matches.all()
  context = dict(user = user, match = match)  
  return render(request, 'dating_app/mingle.html', context)
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import AbstractBaseUser,BaseUserManager, User
  from dating_project import settings
  
  
  
  class ProfileManager(BaseUserManager):
  
  
  
      def create_user(self, username, email,description,photo, password=None):
          if not email:
              raise ValueError("You must creat an email")
          if not username:
              raise ValueError("You must create a username!")
          if not description:
              raise ValueError("You must write a description")
          if not photo:
              raise ValueError("You must upload a photo")
  
          user = self.model(
                  email=self.normalize_email(email),
                  username = username, 
                  description= description,
                  photo= photo,
  
              )
  
          user.set_password(password)
          user.save(using=self._db)
          return user 
  
  
      def create_superuser(self, username, email,description,photo, password):
          user = self.create_user(
                  email=self.normalize_email(email),
                  password=password,
                  username=username,
                  description=description,
                  photo=photo,
  
              )
  
          user.is_admin=True
          user.is_staff=True
          user.is_superuser=True
          user.save(using=self._db)
          return user
  
  
  
  
  class Profile(AbstractBaseUser):
  
      email                       = models.EmailField(verbose_name="email")
      username                    = models.CharField(max_length=30, unique=True)
      date_joined                 = models.DateTimeField(verbose_name='date joined', auto_now_add=True)
      last_login                  = models.DateTimeField(verbose_name='last login', auto_now=True)
      is_admin                    = models.BooleanField(default=False)
      is_active                   = models.BooleanField(default=True)
      is_staff                    = models.BooleanField(default=False)
      is_superuser                = models.BooleanField(default=False)
      #what I added
      description                 = models.TextField()
      photo                       = models.ImageField(upload_to='profile_photo',blank=False, height_field=None, width_field=None, max_length=100)
      matches                     = models.ManyToManyField(settings.AUTH_USER_MODEL, related_name='+', blank=True)
  
  
  
      USERNAME_FIELD = 'username'
      REQUIRED_FIELDS = ['description','photo','email']
  
  
      objects = ProfileManager()
  
  
      def __str__(self):
          return self.username
  
  
      def has_perm(self, perm, obj=None):
          return self.is_admin
  
  
      def has_module_perms(self,app_label):
          return True
  
  
  
  class UserVote(models.Model):
      user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
  
      voter = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='given_vote', on_delete=models.CASCADE)
      vote = models.BooleanField(default=False)
  
      class Meta:
          unique_together = (('user', 'voter'))
  </code></pre>