def get(self, request, *args, **kwargs):
        """ Handles GET requests. """
        self.init_attachment_cache()

        # Initializes the forms
        post_form_class = self.get_post_form_class()
        post_form = self.get_post_form(post_form_class)
        attachment_formset_class = self.get_attachment_formset_class()
        attachment_formset = self.get_attachment_formset(attachment_formset_class)
        poll_option_formset_class = self.get_poll_option_formset_class()
        poll_option_formset = self.get_poll_option_formset(poll_option_formset_class)

        return self.render_to_response(
            self.get_context_data(
                post_form=post_form, attachment_formset=attachment_formset,
                poll_option_formset=poll_option_formset,
            ),
        )
def get ( self , request , * args , ** kwargs ) : self . init_attachment_cache ( ) post_form_class = self . get_post_form_class ( ) post_form = self . get_post_form ( post_form_class ) attachment_formset_class = self . get_attachment_formset_class ( ) attachment_formset = self . get_attachment_formset ( attachment_formset_class ) poll_option_formset_class = self . get_poll_option_formset_class ( ) poll_option_formset = self . get_poll_option_formset ( poll_option_formset_class ) return self . render_to_response ( self . get_context_data ( post_form = post_form , attachment_formset = attachment_formset , poll_option_formset = poll_option_formset , ) , )
Handles GET requests.