(self)
return hasattr(self.request, 'couch_user') and self.request.couch_user.language or 'en'
This should return the lang code of the language being used to view this form.
This should return the lang code of the language being used to view this form.
This should return the lang code of the language being used to view this form .
def display_lang(self):
        """
            This should return the lang code of the language being used to view this form.
        """
        return hasattr(self.request, 'couch_user') and self.request.couch_user.language or 'en'
def display_lang ( self ) : return hasattr ( self . request , 'couch_user' ) and self . request . couch_user . language or 'en'