If I have a variable for the name of the primary key how do I get an object given that variable and a primary key value?

For example 

```
pk_name = 'username'
pk = 'bob'

class_name.objects.get(pk_name=pk)  # this obviously doesn't work because it looks for a field called pk_name

```