notorhot/views.py
def form_invalid(self, form):
        """
        Since we'll 404 if the competition has already been voted on, the only
        way for a form to be invalid is for someone to submit a bogus POST 
        request. This method overrides the parent method to set a response class
        indicating that the user should refresh the form they submitted (i.e. 
        pretending that we don't think this is a hacking attempt).
        """
        self.response_class = ResetContentTemplateResponse
        return super(VoteView, self).form_invalid(form)

        Since we'll 404 if the competition has already been voted on, the only
        way for a form to be invalid is for someone to submit a bogus POST 
        request. This method overrides the parent method to set a response class
        indicating that the user should refresh the form they submitted (i.e. 
        pretending that we don't think this is a hacking attempt).
        
Since we'll 404 if the competition has already been voted on, the only
way for a form to be invalid is for someone to submit a bogus POST
request. This method overrides the parent method to set a response class
indicating that the user should refresh the form they submitted .
Since we ' ll 404 if the competition has already been voted on the only way for a form to be invalid is for someone to submit a bogus POST request . This method overrides the parent method to set a response class indicating that the user should refresh the form they submitted .
def form_invalid(self, form):
        self.response_class = ResetContentTemplateResponse
        return super(VoteView, self).form_invalid(form)
def form_invalid ( self , form ) : self . response_class = ResetContentTemplateResponse return super ( VoteView , self ) . form_invalid ( form )
Since we'll 404 if the competition has already been voted on, the only
way for a form to be invalid is for someone to submit a bogus POST
request.
Since we ' ll 404 if the competition has already been voted on the only way for a form to be invalid is for someone to submit a bogus POST request .
"""
        Since we'll 404 if the competition has already been voted on, the only
        way for a form to be invalid is for someone to submit a bogus POST 
        request. This method overrides the parent method to set a response class
        indicating that the user should refresh the form they submitted (i.e. 
        pretending that we don't think this is a hacking attempt).
        """
self
form