'Ensure that \'pk\' works as an ordering option in Meta.
Refs #8291.'

def test_order_by_pk(self):

    a1 = ArticlePKOrdering.objects.create(pk=1, headline='Article    1', pub_date=datetime(2005, 7, 26))
    a2 = ArticlePKOrdering.objects.create(pk=2, headline='Article    2', pub_date=datetime(2005, 7, 27))
    a3 = ArticlePKOrdering.objects.create(pk=3, headline='Article    3', pub_date=datetime(2005, 7, 27))
    a4 = ArticlePKOrdering.objects.create(pk=4, headline='Article    4', pub_date=datetime(2005, 7, 28))
    self.assertQuerysetEqual(ArticlePKOrdering.objects.all(), ['Article    4', 'Article    3', 'Article    2', 'Article    1'], attrgetter('headline'))
