def add_view(self, request, form_url='', extra_context=None):
        """The ``add`` admin view for the :class:`Page <pages.models.Page>`."""
        extra_context = {
            'language': get_language_from_request(request),
            'page_languages': settings.PAGE_LANGUAGES,
        }
        return super(PageAdmin, self).add_view(request, form_url,
                                               extra_context)
def add_view ( self , request , form_url = '' , extra_context = None ) : extra_context = { 'language' : get_language_from_request ( request ) , 'page_languages' : settings . PAGE_LANGUAGES , } return super ( PageAdmin , self ) . add_view ( request , form_url , extra_context )
The ``add`` admin view for the :class:`Page <pages.models.Page>`.