Find correct metadata instance on models with multiple inheritance/mixins
Merge pull request #1 from bpedman/master

Fix issue with trying to get metadata instance from a wrong class