Fix syntax fails in models mixins base.py