Fixed type in model_mixin causing an error in relation widget