I have a Django form and l would like to pass a user instance when the form is created First Approach This is where l create the form and pass the instance of the user:
And inside the QuestionForm
Second Approach This is where l create the form and pass the request:
And inside the QuestionForm
Now l am getting an error that self is not define and as such l cannot get the user id to query the Study class Any help would be much appreciated |