<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_primary_key(model):
 """Get the name of the field in a model that has primary_key=True"""

    model = get_model(model)
    return (field.name for field in model._meta.fields if field.primary_key).next()