I’m working on a project where the django User model has a one to one relationship with a Person model and a one to many relationship with a WorkExps model which has a couple of fields in it. Now I can get an instance of the Person model form by saying (instance=request.user.person) my problem is getting an instance of the WorkExps model form
If accessing the WorkExps instance doesn’t work as request.user.workexps (assuming that instance of workexps already exists), then we’d need to look deeper into the situation.
Please provide the WorkExps model, the view that’s trying to do this, and the form(s) that may be involved. Also include the full traceback that is thrown when trying to access it as request.user.workexps.
Also see: How to ask a good question