Deprecated in Django 1.5: The depth parameter to select_related() has been deprecated. You should replace it with the use of the (*fields) listing specific related fields instead as documented above. A depth limit of relationships to follow can also be specified:
b = Book.objects.select_related(depth=1).get(id=4)
p = b.author # Doesn't hit the database.
c = p.hometown
how to replace iDjango 1.5 depth with the use of the (*fields)?