Return key in Model.primary_key()
Return key in Model.primary_key()

If the column has different name than key, we need key, otherwise it doesn't work.
Consider the following column:

    id_teacher = db.Column('id_lector', db.Integer, primary_key=True, key='id_teacher')

Name gets `id_lector`, key gets `id_teacher`. With name, we get (form `resouce_uri()`):

    AttributeError: 'Teachers' object has no attribute 'id_lector'
jeffknupp/sandman2,jeffknupp/sandman2,jeffknupp/sandman2