Correct the resolver to use correct attribute names for django models