hood/views.py
def form_valid(self,form):
        '''
        setting up the form instance user property to the current user before saving it
        '''
        form.instance.author=self.request.user
        return super().form_valid(form)

        setting up the form instance user property to the current user before saving it
        
setting up the form instance user property to the current user before saving it
setting up the form instance user property to the current user before saving it
def form_valid(self,form):
        form.instance.author=self.request.user
        return super().form_valid(form)
def form_valid ( self , form ) : form . instance . author = self . request . user return super ( ) . form_valid ( form )
setting up the form instance user property to the current user before saving it
setting up the form instance user property to the current user before saving it
'''
        setting up the form instance user property to the current user before saving it
        '''
self
form