title: Django Meta Class - Apply Ordering to user's model field
body: <p>I am new to Django 1.9, I have an models.py :</p>
  
  <pre><code>class MyProfile(models.Model):
  
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
      Role = ArrayField(models.CharField(max_length=1000), blank=True,null=True)
      ContactNumber = models.CharField(max_length=100)
  
      class Meta:
          ordering = ('date_joined',)
  </code></pre>
  
  <p>Here I want to order table using <code>date_joined</code> which is field of <code>User model</code>.</p>
  
  <p>When I am trying to run <code>python manage.py makemigrations</code> it gives me error as follows:</p>
  
  <pre><code>SystemCheckError: System check identified some issues:
  
  ERRORS:
  projectmanagement.UniservedTeam: (models.E015) 'ordering' refers to the non-existent field 'date_joined'.
  </code></pre>
  
  <p>How do i achieve this?</p>