Replace set_primary_key with self.primary_key=

Wanted to change it because some people may be confused.