'Annotations can reference fields in a values clause,
and contribute to an existing values clause.'

def test_values_annotation(self):

    qs = Book.objects.values('rating').annotate(other_rating=(F('rating') - 1))
    book = qs.get(pk=self.b1.pk)
    self.assertEqual((book['rating'] - 1), book['other_rating'])
    book = qs.get(other_rating=4)
    self.assertEqual(book['other_rating'], 4)
    book = qs.annotate(other_isbn=F('isbn')).get(other_rating=4)
    self.assertEqual(book['other_rating'], 4)
    self.assertEqual(book['other_isbn'], '155860191')
