def get_format(self):
        format = self.request.GET.get('format', self.default_format)
        if format not in self.allowed_formats:
            format = self.default_format
        return format
Get the format for the content, defaulting to ``default_format``.
dataset/ETHPy150Open ofri/Open-Knesset/hashnav/base.py/View.get_format