def get_form_kwargs(self, **kwargs):
kwargs = super(ClassRegistrationView, self).get_form_kwargs(**kwargs)<EOL>kwargs['<STR_LIT:user>'] = self.request.user if hasattr(self.request,'<STR_LIT:user>') else None<EOL>listing = self.get_listing()<EOL>kwargs.update({<EOL>'<STR_LIT>': listing['<STR_LIT>'],<EOL>'<STR_LIT>': listing['<STR_LIT>'],<EOL>})<EOL>return kwargs<EOL>
Tell the form which fields to render