determine the internal attributes list from a dummy model instance and raise AttributeError(item) instead of just AttributeError