# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot

snapshots = Snapshot()

snapshots["test_query_html config"] = {
    "allModelFields": {
        "auth.Group": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "auth.User": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "date_joined": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "date_joined",
                    "type": "datetime",
                },
                "email": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "email",
                    "type": "string",
                },
                "first_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "first_name",
                    "type": "string",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "is_active": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_active",
                    "type": "boolean",
                },
                "is_staff": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_staff",
                    "type": "boolean",
                },
                "is_superuser": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_superuser",
                    "type": "boolean",
                },
                "last_login": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "last_login",
                    "type": "datetime",
                },
                "last_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "last_name",
                    "type": "string",
                },
                "password": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "password",
                    "type": "string",
                },
                "username": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "username",
                    "type": "string",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "date_joined",
                "email",
                "first_name",
                "is_active",
                "is_staff",
                "is_superuser",
                "last_login",
                "last_name",
                "password",
                "username",
            ],
        },
        "boolean": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
            },
            "sortedFields": ["average", "is_null", "sum"],
        },
        "core.Address": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "andrew": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "andrew",
                    "type": "string",
                },
                "bob": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "bob",
                    "type": "html",
                },
                "city": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "city",
                    "type": "string",
                },
                "fred": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "fred",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "producer": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Producer",
                    "prettyName": "producer",
                    "type": None,
                },
                "tom": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "tom",
                    "type": "html",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "andrew",
                "bob",
                "city",
                "fred",
                "producer",
                "tom",
            ],
        },
        "core.InAdmin": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "core.InlineAdmin": {
            "defaultFilters": "",
            "fields": {
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "in_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InAdmin",
                    "prettyName": "in_admin",
                    "type": None,
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "in_admin", "name"],
        },
        "core.Normal": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "in_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InAdmin",
                    "prettyName": "in_admin",
                    "type": None,
                },
                "inline_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InlineAdmin",
                    "prettyName": "inline_admin",
                    "type": None,
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "in_admin", "inline_admin", "name"],
        },
        "core.Producer": {
            "defaultFilters": "",
            "fields": {
                "address": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Address",
                    "prettyName": "address",
                    "type": None,
                },
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "frank": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "frank",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "address", "frank", "name"],
        },
        "core.Product": {
            "defaultFilters": "default=filter&filter=default",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "annotated": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "annotated",
                    "type": "string",
                },
                "boat": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "boat",
                    "type": "number",
                },
                "calculated_boolean": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "calculated_boolean",
                    "type": "boolean",
                },
                "created_time": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "created_time",
                    "type": "datetime",
                },
                "date": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "date",
                    "prettyName": "date",
                    "type": "date",
                },
                "default_sku": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.SKU",
                    "prettyName": "default_sku",
                    "type": None,
                },
                "duration": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "duration",
                    "prettyName": "duration",
                    "type": "duration",
                },
                "extra_inline": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "extra_inline",
                    "type": "string",
                },
                "extra_model": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "extra_model",
                    "type": "string",
                },
                "fake": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "unknown",
                    "prettyName": "fake",
                    "type": "unknown",
                },
                "funky": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "funky",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "image": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "html",
                    "prettyName": "image",
                    "type": "html",
                },
                "is_onsale": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "is_onsale",
                    "type": "html",
                },
                "lambda": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "lambda",
                    "type": "html",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "number_choice": {
                    "canPivot": True,
                    "choices": [[1, "A"], [2, "B"]],
                    "concrete": True,
                    "model": "numberchoice",
                    "prettyName": "number_choice",
                    "type": "numberchoice",
                },
                "only_in_list_view": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "only_in_list_view",
                    "type": "string",
                },
                "onsale": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "onsale",
                    "type": "boolean",
                },
                "producer": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Producer",
                    "prettyName": "producer",
                    "type": None,
                },
                "size": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "size",
                    "type": "number",
                },
                "size_unit": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "size_unit",
                    "type": "string",
                },
                "stealth_annotation": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "stealth_annotation",
                    "type": "string",
                },
                "string_choice": {
                    "canPivot": True,
                    "choices": [["a", "A"], ["b", "B"]],
                    "concrete": True,
                    "model": "stringchoice",
                    "prettyName": "string_choice",
                    "type": "stringchoice",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "annotated",
                "boat",
                "calculated_boolean",
                "created_time",
                "date",
                "default_sku",
                "duration",
                "extra_inline",
                "extra_model",
                "fake",
                "funky",
                "image",
                "is_onsale",
                "lambda",
                "name",
                "number_choice",
                "only_in_list_view",
                "onsale",
                "producer",
                "size",
                "size_unit",
                "stealth_annotation",
                "string_choice",
            ],
        },
        "core.SKU": {
            "defaultFilters": "",
            "fields": {
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "product": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Product",
                    "prettyName": "product",
                    "type": None,
                },
            },
            "sortedFields": ["id", "name", "product"],
        },
        "core.Tag": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "data_browser.View": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "created_time": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "created_time",
                    "type": "datetime",
                },
                "description": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "description",
                    "type": "string",
                },
                "fields": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "fields",
                    "type": "string",
                },
                "google_sheets_formula": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "google_sheets_formula",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "id",
                    "type": "string",
                },
                "limit": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "limit",
                    "type": "number",
                },
                "model_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "model_name",
                    "type": "string",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "open_view": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "open_view",
                    "type": "html",
                },
                "owner": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "auth.User",
                    "prettyName": "owner",
                    "type": None,
                },
                "public": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "public",
                    "type": "boolean",
                },
                "public_link": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "public_link",
                    "type": "html",
                },
                "public_slug": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "public_slug",
                    "type": "string",
                },
                "query": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "query",
                    "type": "string",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "created_time",
                "description",
                "fields",
                "google_sheets_formula",
                "limit",
                "model_name",
                "name",
                "open_view",
                "owner",
                "public",
                "public_link",
                "public_slug",
                "query",
            ],
        },
        "date": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "date",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "date",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "day",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "month",
                "month_start",
                "quarter",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "datetime": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "date": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "date",
                    "type": "date",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "hour": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "hour",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "datetime",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "datetime",
                },
                "minute": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "minute",
                    "type": "number",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "second": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "second",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "date",
                "day",
                "hour",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "minute",
                "month",
                "month_start",
                "quarter",
                "second",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "duration": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "duration",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "duration",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "duration",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "duration",
                },
            },
            "sortedFields": ["average", "count", "is_null", "max", "min", "sum"],
        },
        "html": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "isnull": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "json": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "jsonfield": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "month": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "number": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "number",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "number",
                },
                "std_dev": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "std_dev",
                    "type": "number",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
                "variance": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "variance",
                    "type": "number",
                },
            },
            "sortedFields": [
                "average",
                "count",
                "is_null",
                "max",
                "min",
                "std_dev",
                "sum",
                "variance",
            ],
        },
        "numberarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "numberchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "regex": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "string": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "unknown": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "weekday": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "year": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["average", "count", "is_null"],
        },
    },
    "baseUrl": "/data_browser/",
    "canMakePublic": True,
    "defaultRowLimit": 1000,
    "sentryDsn": None,
    "sortedModels": [
        "auth.Group",
        "auth.User",
        "core.Address",
        "core.InAdmin",
        "core.InlineAdmin",
        "core.Normal",
        "core.Producer",
        "core.Product",
        "core.SKU",
        "core.Tag",
        "data_browser.View",
    ],
    "types": {
        "boolean": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {
                "equals": {"type": "boolean"},
                "is_null": {"type": "boolean"},
                "not_equals": {"type": "boolean"},
            },
            "sortedLookups": ["equals", "not_equals", "is_null"],
        },
        "date": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "today",
            "lookups": {
                "equals": {"type": "date"},
                "gt": {"type": "date"},
                "gte": {"type": "date"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "date"},
                "lte": {"type": "date"},
                "not_equals": {"type": "date"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "datetime": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "now",
            "lookups": {
                "equals": {"type": "datetime"},
                "gt": {"type": "datetime"},
                "gte": {"type": "datetime"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "datetime"},
                "lte": {"type": "datetime"},
                "not_equals": {"type": "datetime"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "duration": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "equals": {"type": "duration"},
                "gt": {"type": "duration"},
                "gte": {"type": "duration"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "duration"},
                "lte": {"type": "duration"},
                "not_equals": {"type": "duration"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "html": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "isnull": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {"equals": {"type": "boolean"}},
            "sortedLookups": ["equals"],
        },
        "json": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "field_equals": {"type": "jsonfield"},
                "has_key": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_field_equals": {"type": "jsonfield"},
                "not_has_key": {"type": "string"},
            },
            "sortedLookups": [
                "is_null",
                "has_key",
                "field_equals",
                "not_has_key",
                "not_field_equals",
            ],
        },
        "jsonfield": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": "|",
            "lookups": {},
            "sortedLookups": [],
        },
        "month": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "January",
            "lookups": {"equals": {"type": "month"}, "not_equals": {"type": "month"}},
            "sortedLookups": ["equals", "not_equals"],
        },
        "number": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": 0,
            "lookups": {
                "equals": {"type": "number"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "number"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "numberarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "numberchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "numberchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "numberchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "equals": {"type": "numberchoice"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "numberchoice"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "regex": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": ".*",
            "lookups": {},
            "sortedLookups": [],
        },
        "string": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "stringarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "stringchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "stringchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "stringchoice"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "unknown": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {"is_null": {"type": "boolean"}},
            "sortedLookups": ["is_null"],
        },
        "weekday": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "Monday",
            "lookups": {
                "equals": {"type": "weekday"},
                "not_equals": {"type": "weekday"},
            },
            "sortedLookups": ["equals", "not_equals"],
        },
        "year": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": 2020,
            "lookups": {
                "equals": {"type": "year"},
                "gt": {"type": "year"},
                "gte": {"type": "year"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "year"},
                "lte": {"type": "year"},
                "not_equals": {"type": "year"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
    },
}

snapshots["test_query_query query"] = {
    "fields": [
        {
            "path": ["size"],
            "pathStr": "size",
            "pivoted": False,
            "prettyPath": ["size"],
            "priority": 0,
            "sort": "dsc",
        },
        {
            "path": ["name"],
            "pathStr": "name",
            "pivoted": False,
            "prettyPath": ["name"],
            "priority": 1,
            "sort": "asc",
        },
        {
            "path": ["size_unit"],
            "pathStr": "size_unit",
            "pivoted": False,
            "prettyPath": ["size_unit"],
            "priority": None,
            "sort": None,
        },
    ],
    "filterErrors": [None, None],
    "filters": [
        {
            "lookup": "lt",
            "path": ["size"],
            "pathStr": "size",
            "prettyPath": ["size"],
            "value": "2",
        },
        {
            "lookup": "gt",
            "path": ["id"],
            "pathStr": "id",
            "prettyPath": ["id"],
            "value": "0",
        },
    ],
    "limit": 1000,
    "model": "core.Product",
}

snapshots["test_query_html_no_perms config"] = {
    "allModelFields": {
        "boolean": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
            },
            "sortedFields": ["average", "is_null", "sum"],
        },
        "core.Address": {
            "defaultFilters": "",
            "fields": {
                "andrew": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "andrew",
                    "type": "string",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
            },
            "sortedFields": ["id", "andrew"],
        },
        "core.Product": {
            "defaultFilters": "default=filter&filter=default",
            "fields": {
                "annotated": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "annotated",
                    "type": "string",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "stealth_annotation": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "stealth_annotation",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "annotated", "stealth_annotation"],
        },
        "data_browser.View": {
            "defaultFilters": "",
            "fields": {
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "id",
                    "type": "string",
                }
            },
            "sortedFields": ["id"],
        },
        "date": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "date",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "date",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "day",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "month",
                "month_start",
                "quarter",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "datetime": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "date": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "date",
                    "type": "date",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "hour": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "hour",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "datetime",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "datetime",
                },
                "minute": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "minute",
                    "type": "number",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "second": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "second",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "date",
                "day",
                "hour",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "minute",
                "month",
                "month_start",
                "quarter",
                "second",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "duration": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "duration",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "duration",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "duration",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "duration",
                },
            },
            "sortedFields": ["average", "count", "is_null", "max", "min", "sum"],
        },
        "html": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "isnull": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "json": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "jsonfield": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "month": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "number": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "number",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "number",
                },
                "std_dev": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "std_dev",
                    "type": "number",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
                "variance": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "variance",
                    "type": "number",
                },
            },
            "sortedFields": [
                "average",
                "count",
                "is_null",
                "max",
                "min",
                "std_dev",
                "sum",
                "variance",
            ],
        },
        "numberarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "numberchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "regex": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "string": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "unknown": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "weekday": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "year": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["average", "count", "is_null"],
        },
    },
    "baseUrl": "/data_browser/",
    "canMakePublic": False,
    "defaultRowLimit": 1000,
    "sentryDsn": None,
    "sortedModels": ["core.Address", "core.Product", "data_browser.View"],
    "types": {
        "boolean": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {
                "equals": {"type": "boolean"},
                "is_null": {"type": "boolean"},
                "not_equals": {"type": "boolean"},
            },
            "sortedLookups": ["equals", "not_equals", "is_null"],
        },
        "date": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "today",
            "lookups": {
                "equals": {"type": "date"},
                "gt": {"type": "date"},
                "gte": {"type": "date"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "date"},
                "lte": {"type": "date"},
                "not_equals": {"type": "date"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "datetime": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "now",
            "lookups": {
                "equals": {"type": "datetime"},
                "gt": {"type": "datetime"},
                "gte": {"type": "datetime"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "datetime"},
                "lte": {"type": "datetime"},
                "not_equals": {"type": "datetime"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "duration": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "equals": {"type": "duration"},
                "gt": {"type": "duration"},
                "gte": {"type": "duration"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "duration"},
                "lte": {"type": "duration"},
                "not_equals": {"type": "duration"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "html": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "isnull": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {"equals": {"type": "boolean"}},
            "sortedLookups": ["equals"],
        },
        "json": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "field_equals": {"type": "jsonfield"},
                "has_key": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_field_equals": {"type": "jsonfield"},
                "not_has_key": {"type": "string"},
            },
            "sortedLookups": [
                "is_null",
                "has_key",
                "field_equals",
                "not_has_key",
                "not_field_equals",
            ],
        },
        "jsonfield": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": "|",
            "lookups": {},
            "sortedLookups": [],
        },
        "month": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "January",
            "lookups": {"equals": {"type": "month"}, "not_equals": {"type": "month"}},
            "sortedLookups": ["equals", "not_equals"],
        },
        "number": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": 0,
            "lookups": {
                "equals": {"type": "number"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "number"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "numberarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "numberchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "numberchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "numberchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "equals": {"type": "numberchoice"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "numberchoice"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "regex": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": ".*",
            "lookups": {},
            "sortedLookups": [],
        },
        "string": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "stringarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "stringchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "stringchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "stringchoice"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "unknown": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {"is_null": {"type": "boolean"}},
            "sortedLookups": ["is_null"],
        },
        "weekday": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "Monday",
            "lookups": {
                "equals": {"type": "weekday"},
                "not_equals": {"type": "weekday"},
            },
            "sortedLookups": ["equals", "not_equals"],
        },
        "year": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": 2020,
            "lookups": {
                "equals": {"type": "year"},
                "gt": {"type": "year"},
                "gte": {"type": "year"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "year"},
                "lte": {"type": "year"},
                "not_equals": {"type": "year"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
    },
}

snapshots["test_query_ctx config"] = {
    "allModelFields": {
        "auth.Group": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "auth.User": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "date_joined": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "date_joined",
                    "type": "datetime",
                },
                "email": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "email",
                    "type": "string",
                },
                "first_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "first_name",
                    "type": "string",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "is_active": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_active",
                    "type": "boolean",
                },
                "is_staff": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_staff",
                    "type": "boolean",
                },
                "is_superuser": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "is_superuser",
                    "type": "boolean",
                },
                "last_login": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "last_login",
                    "type": "datetime",
                },
                "last_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "last_name",
                    "type": "string",
                },
                "password": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "password",
                    "type": "string",
                },
                "username": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "username",
                    "type": "string",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "date_joined",
                "email",
                "first_name",
                "is_active",
                "is_staff",
                "is_superuser",
                "last_login",
                "last_name",
                "password",
                "username",
            ],
        },
        "boolean": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
            },
            "sortedFields": ["average", "is_null", "sum"],
        },
        "core.Address": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "andrew": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "andrew",
                    "type": "string",
                },
                "bob": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "bob",
                    "type": "html",
                },
                "city": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "city",
                    "type": "string",
                },
                "fred": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "fred",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "producer": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Producer",
                    "prettyName": "producer",
                    "type": None,
                },
                "tom": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "tom",
                    "type": "html",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "andrew",
                "bob",
                "city",
                "fred",
                "producer",
                "tom",
            ],
        },
        "core.InAdmin": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "core.InlineAdmin": {
            "defaultFilters": "",
            "fields": {
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "in_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InAdmin",
                    "prettyName": "in_admin",
                    "type": None,
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "in_admin", "name"],
        },
        "core.Normal": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "in_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InAdmin",
                    "prettyName": "in_admin",
                    "type": None,
                },
                "inline_admin": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.InlineAdmin",
                    "prettyName": "inline_admin",
                    "type": None,
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "in_admin", "inline_admin", "name"],
        },
        "core.Producer": {
            "defaultFilters": "",
            "fields": {
                "address": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Address",
                    "prettyName": "address",
                    "type": None,
                },
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "frank": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "frank",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "address", "frank", "name"],
        },
        "core.Product": {
            "defaultFilters": "default=filter&filter=default",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "annotated": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "annotated",
                    "type": "string",
                },
                "boat": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "boat",
                    "type": "number",
                },
                "calculated_boolean": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "calculated_boolean",
                    "type": "boolean",
                },
                "created_time": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "created_time",
                    "type": "datetime",
                },
                "date": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "date",
                    "prettyName": "date",
                    "type": "date",
                },
                "default_sku": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.SKU",
                    "prettyName": "default_sku",
                    "type": None,
                },
                "duration": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "duration",
                    "prettyName": "duration",
                    "type": "duration",
                },
                "extra_inline": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "extra_inline",
                    "type": "string",
                },
                "extra_model": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "extra_model",
                    "type": "string",
                },
                "fake": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "unknown",
                    "prettyName": "fake",
                    "type": "unknown",
                },
                "funky": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "funky",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "image": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "html",
                    "prettyName": "image",
                    "type": "html",
                },
                "is_onsale": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "is_onsale",
                    "type": "html",
                },
                "lambda": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "lambda",
                    "type": "html",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "number_choice": {
                    "canPivot": True,
                    "choices": [[1, "A"], [2, "B"]],
                    "concrete": True,
                    "model": "numberchoice",
                    "prettyName": "number_choice",
                    "type": "numberchoice",
                },
                "only_in_list_view": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "only_in_list_view",
                    "type": "string",
                },
                "onsale": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "onsale",
                    "type": "boolean",
                },
                "producer": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Producer",
                    "prettyName": "producer",
                    "type": None,
                },
                "size": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "size",
                    "type": "number",
                },
                "size_unit": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "size_unit",
                    "type": "string",
                },
                "stealth_annotation": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "stealth_annotation",
                    "type": "string",
                },
                "string_choice": {
                    "canPivot": True,
                    "choices": [["a", "A"], ["b", "B"]],
                    "concrete": True,
                    "model": "stringchoice",
                    "prettyName": "string_choice",
                    "type": "stringchoice",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "annotated",
                "boat",
                "calculated_boolean",
                "created_time",
                "date",
                "default_sku",
                "duration",
                "extra_inline",
                "extra_model",
                "fake",
                "funky",
                "image",
                "is_onsale",
                "lambda",
                "name",
                "number_choice",
                "only_in_list_view",
                "onsale",
                "producer",
                "size",
                "size_unit",
                "stealth_annotation",
                "string_choice",
            ],
        },
        "core.SKU": {
            "defaultFilters": "",
            "fields": {
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "product": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "core.Product",
                    "prettyName": "product",
                    "type": None,
                },
            },
            "sortedFields": ["id", "name", "product"],
        },
        "core.Tag": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "id",
                    "type": "number",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
            },
            "sortedFields": ["id", "admin", "name"],
        },
        "data_browser.View": {
            "defaultFilters": "",
            "fields": {
                "admin": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "admin",
                    "type": "html",
                },
                "created_time": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "datetime",
                    "prettyName": "created_time",
                    "type": "datetime",
                },
                "description": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "description",
                    "type": "string",
                },
                "fields": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "fields",
                    "type": "string",
                },
                "google_sheets_formula": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "google_sheets_formula",
                    "type": "html",
                },
                "id": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "id",
                    "type": "string",
                },
                "limit": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "number",
                    "prettyName": "limit",
                    "type": "number",
                },
                "model_name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "model_name",
                    "type": "string",
                },
                "name": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "name",
                    "type": "string",
                },
                "open_view": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "open_view",
                    "type": "html",
                },
                "owner": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": False,
                    "model": "auth.User",
                    "prettyName": "owner",
                    "type": None,
                },
                "public": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "boolean",
                    "prettyName": "public",
                    "type": "boolean",
                },
                "public_link": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": False,
                    "model": None,
                    "prettyName": "public_link",
                    "type": "html",
                },
                "public_slug": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "public_slug",
                    "type": "string",
                },
                "query": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": "string",
                    "prettyName": "query",
                    "type": "string",
                },
            },
            "sortedFields": [
                "id",
                "admin",
                "created_time",
                "description",
                "fields",
                "google_sheets_formula",
                "limit",
                "model_name",
                "name",
                "open_view",
                "owner",
                "public",
                "public_link",
                "public_slug",
                "query",
            ],
        },
        "date": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "date",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "date",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "day",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "month",
                "month_start",
                "quarter",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "datetime": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "date": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "date",
                    "type": "date",
                },
                "day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "day",
                    "type": "number",
                },
                "hour": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "hour",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "iso_week": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_week",
                    "type": "number",
                },
                "iso_year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "iso_year",
                    "type": "year",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "datetime",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "datetime",
                },
                "minute": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "minute",
                    "type": "number",
                },
                "month": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month",
                    "type": "month",
                },
                "month_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "month_start",
                    "type": "date",
                },
                "quarter": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "quarter",
                    "type": "number",
                },
                "second": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "second",
                    "type": "number",
                },
                "week_day": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_day",
                    "type": "weekday",
                },
                "week_start": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "week_start",
                    "type": "date",
                },
                "year": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "year",
                    "type": "year",
                },
            },
            "sortedFields": [
                "count",
                "date",
                "day",
                "hour",
                "is_null",
                "iso_week",
                "iso_year",
                "max",
                "min",
                "minute",
                "month",
                "month_start",
                "quarter",
                "second",
                "week_day",
                "week_start",
                "year",
            ],
        },
        "duration": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "duration",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "duration",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "duration",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "duration",
                },
            },
            "sortedFields": ["average", "count", "is_null", "max", "min", "sum"],
        },
        "html": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "isnull": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "json": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "jsonfield": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "month": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "number": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
                "max": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "max",
                    "type": "number",
                },
                "min": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "min",
                    "type": "number",
                },
                "std_dev": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "std_dev",
                    "type": "number",
                },
                "sum": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "sum",
                    "type": "number",
                },
                "variance": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "variance",
                    "type": "number",
                },
            },
            "sortedFields": [
                "average",
                "count",
                "is_null",
                "max",
                "min",
                "std_dev",
                "sum",
                "variance",
            ],
        },
        "numberarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "numberchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "regex": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "string": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringarray": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "stringchoice": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "unknown": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "weekday": {
            "defaultFilters": "",
            "fields": {
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["count", "is_null"],
        },
        "year": {
            "defaultFilters": "",
            "fields": {
                "average": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "average",
                    "type": "number",
                },
                "count": {
                    "canPivot": False,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "count",
                    "type": "number",
                },
                "is_null": {
                    "canPivot": True,
                    "choices": [],
                    "concrete": True,
                    "model": None,
                    "prettyName": "is_null",
                    "type": "isnull",
                },
            },
            "sortedFields": ["average", "count", "is_null"],
        },
    },
    "baseUrl": "/data_browser/",
    "canMakePublic": True,
    "defaultRowLimit": 1000,
    "sentryDsn": None,
    "sortedModels": [
        "auth.Group",
        "auth.User",
        "core.Address",
        "core.InAdmin",
        "core.InlineAdmin",
        "core.Normal",
        "core.Producer",
        "core.Product",
        "core.SKU",
        "core.Tag",
        "data_browser.View",
    ],
    "types": {
        "boolean": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {
                "equals": {"type": "boolean"},
                "is_null": {"type": "boolean"},
                "not_equals": {"type": "boolean"},
            },
            "sortedLookups": ["equals", "not_equals", "is_null"],
        },
        "date": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "today",
            "lookups": {
                "equals": {"type": "date"},
                "gt": {"type": "date"},
                "gte": {"type": "date"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "date"},
                "lte": {"type": "date"},
                "not_equals": {"type": "date"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "datetime": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "now",
            "lookups": {
                "equals": {"type": "datetime"},
                "gt": {"type": "datetime"},
                "gte": {"type": "datetime"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "datetime"},
                "lte": {"type": "datetime"},
                "not_equals": {"type": "datetime"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "duration": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "equals": {"type": "duration"},
                "gt": {"type": "duration"},
                "gte": {"type": "duration"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "duration"},
                "lte": {"type": "duration"},
                "not_equals": {"type": "duration"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "html": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "isnull": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": True,
            "lookups": {"equals": {"type": "boolean"}},
            "sortedLookups": ["equals"],
        },
        "json": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "field_equals": {"type": "jsonfield"},
                "has_key": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_field_equals": {"type": "jsonfield"},
                "not_has_key": {"type": "string"},
            },
            "sortedLookups": [
                "is_null",
                "has_key",
                "field_equals",
                "not_has_key",
                "not_field_equals",
            ],
        },
        "jsonfield": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": "|",
            "lookups": {},
            "sortedLookups": [],
        },
        "month": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "January",
            "lookups": {"equals": {"type": "month"}, "not_equals": {"type": "month"}},
            "sortedLookups": ["equals", "not_equals"],
        },
        "number": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": 0,
            "lookups": {
                "equals": {"type": "number"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "number"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "numberarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "numberchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "numberchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "numberchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "equals": {"type": "numberchoice"},
                "gt": {"type": "number"},
                "gte": {"type": "number"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "number"},
                "lte": {"type": "number"},
                "not_equals": {"type": "numberchoice"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
        "regex": {
            "defaultLookup": None,
            "defaultSort": None,
            "defaultValue": ".*",
            "lookups": {},
            "sortedLookups": [],
        },
        "string": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": "",
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "string"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "string"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "stringarray": {
            "defaultLookup": "contains",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "length": {"type": "number"},
                "not_contains": {"type": "stringchoice"},
                "not_length": {"type": "number"},
            },
            "sortedLookups": [
                "contains",
                "length",
                "not_contains",
                "not_length",
                "is_null",
            ],
        },
        "stringchoice": {
            "defaultLookup": "equals",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {
                "contains": {"type": "string"},
                "ends_with": {"type": "string"},
                "equals": {"type": "stringchoice"},
                "is_null": {"type": "boolean"},
                "not_contains": {"type": "string"},
                "not_ends_with": {"type": "string"},
                "not_equals": {"type": "stringchoice"},
                "not_regex": {"type": "regex"},
                "not_starts_with": {"type": "string"},
                "regex": {"type": "regex"},
                "starts_with": {"type": "string"},
            },
            "sortedLookups": [
                "equals",
                "contains",
                "starts_with",
                "ends_with",
                "regex",
                "not_equals",
                "not_contains",
                "not_starts_with",
                "not_ends_with",
                "not_regex",
                "is_null",
            ],
        },
        "unknown": {
            "defaultLookup": "is_null",
            "defaultSort": None,
            "defaultValue": None,
            "lookups": {"is_null": {"type": "boolean"}},
            "sortedLookups": ["is_null"],
        },
        "weekday": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": "Monday",
            "lookups": {
                "equals": {"type": "weekday"},
                "not_equals": {"type": "weekday"},
            },
            "sortedLookups": ["equals", "not_equals"],
        },
        "year": {
            "defaultLookup": "equals",
            "defaultSort": "asc",
            "defaultValue": 2020,
            "lookups": {
                "equals": {"type": "year"},
                "gt": {"type": "year"},
                "gte": {"type": "year"},
                "is_null": {"type": "boolean"},
                "lt": {"type": "year"},
                "lte": {"type": "year"},
                "not_equals": {"type": "year"},
            },
            "sortedLookups": [
                "equals",
                "not_equals",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_null",
            ],
        },
    },
}

snapshots["test_query_csv_pivot_permutations[----] key"] = [[""]]

snapshots["test_query_csv_pivot_permutations[---b] key"] = [
    ["id count", "size max"],
    ["0.0", ""],
]

snapshots["test_query_csv_pivot_permutations[--c-] key"] = [
    ["created_time month"],
    [""],
]

snapshots["test_query_csv_pivot_permutations[--cb] key"] = [
    ["created_time month"],
    [""],
]

snapshots["test_query_csv_pivot_permutations[-r--] key"] = [["created_time year"]]

snapshots["test_query_csv_pivot_permutations[-r-b] key"] = [
    ["created_time year", "id count", "size max"]
]

snapshots["test_query_csv_pivot_permutations[-rc-] key"] = [
    ["created_time month"],
    ["created_time year"],
]

snapshots["test_query_csv_pivot_permutations[-rcb] key"] = [
    ["created_time month"],
    ["created_time year"],
]

snapshots["test_query_csv_pivot_permutations[d---] key"] = [[""]]

snapshots["test_query_csv_pivot_permutations[d--b] key"] = [
    ["id count", "size max"],
    ["6.0", "6.0"],
]

snapshots["test_query_csv_pivot_permutations[d-c-] key"] = [
    ["created_time month", "January", "Feburary"],
    [""],
    [""],
]

snapshots["test_query_csv_pivot_permutations[d-cb] key"] = [
    ["created_time month", "January", "", "Feburary", ""],
    ["", "id count", "size max", "id count", "size max"],
    ["", "4.0", "6.0", "2.0", "3.0"],
]

snapshots["test_query_csv_pivot_permutations[dr--] key"] = [
    ["created_time year"],
    ["2020.0"],
    ["2021.0"],
]

snapshots["test_query_csv_pivot_permutations[dr-b] key"] = [
    ["created_time year", "id count", "size max"],
    ["2020.0", "3.0", "3.0"],
    ["2021.0", "3.0", "6.0"],
]

snapshots["test_query_csv_pivot_permutations[drc-] key"] = [
    ["created_time month", "January", "Feburary"],
    ["created_time year"],
    ["2020.0"],
    ["2021.0"],
]

snapshots["test_query_csv_pivot_permutations[drcb] key"] = [
    ["created_time month", "January", "", "Feburary", ""],
    ["created_time year", "id count", "size max", "id count", "size max"],
    ["2020.0", "1.0", "1.0", "2.0", "3.0"],
    ["2021.0", "3.0", "6.0", "", ""],
]

snapshots["test_query_json data"] = {
    "body": [[{}, {}]],
    "cols": [{}],
    "fields": [
        {
            "path": ["size"],
            "pathStr": "size",
            "pivoted": False,
            "prettyPath": ["size"],
            "priority": 0,
            "sort": "dsc",
        },
        {
            "path": ["name"],
            "pathStr": "name",
            "pivoted": False,
            "prettyPath": ["name"],
            "priority": 1,
            "sort": "asc",
        },
        {
            "path": ["size_unit"],
            "pathStr": "size_unit",
            "pivoted": False,
            "prettyPath": ["size_unit"],
            "priority": None,
            "sort": None,
        },
    ],
    "filterErrors": [None, None],
    "filters": [
        {
            "lookup": "lt",
            "path": ["size"],
            "pathStr": "size",
            "prettyPath": ["size"],
            "value": "2",
        },
        {
            "lookup": "gt",
            "path": ["id"],
            "pathStr": "id",
            "prettyPath": ["id"],
            "value": "0",
        },
    ],
    "formatHints": {
        "name": {},
        "size": {
            "decimalPlaces": 0,
            "highCutOff": 10000000000.0,
            "lowCutOff": 0.0001,
            "significantFigures": 3,
        },
        "size_unit": {},
    },
    "length": 2,
    "limit": 1000,
    "model": "core.Product",
    "rows": [
        {"name": "a", "size": 1.0, "size_unit": "g"},
        {"name": "b", "size": 1.0, "size_unit": "g"},
    ],
}

snapshots["test_query_json_pivot data"] = {
    "body": [
        [{"id__count": 1.0, "size__max": 1.0}, {"id__count": 3.0, "size__max": 6.0}],
        [{"id__count": 2.0, "size__max": 3.0}, None],
    ],
    "cols": [{"created_time__month": "January"}, {"created_time__month": "Feburary"}],
    "fields": [
        {
            "path": ["created_time", "year"],
            "pathStr": "created_time__year",
            "pivoted": False,
            "prettyPath": ["created_time", "year"],
            "priority": 0,
            "sort": "asc",
        },
        {
            "path": ["created_time", "month"],
            "pathStr": "created_time__month",
            "pivoted": True,
            "prettyPath": ["created_time", "month"],
            "priority": 1,
            "sort": "asc",
        },
        {
            "path": ["id", "count"],
            "pathStr": "id__count",
            "pivoted": False,
            "prettyPath": ["id", "count"],
            "priority": None,
            "sort": None,
        },
        {
            "path": ["size", "max"],
            "pathStr": "size__max",
            "pivoted": False,
            "prettyPath": ["size", "max"],
            "priority": None,
            "sort": None,
        },
    ],
    "filterErrors": [],
    "filters": [],
    "formatHints": {
        "created_time__month": {},
        "created_time__year": {
            "decimalPlaces": 0,
            "highCutOff": 10000000000.0,
            "lowCutOff": 0.0001,
            "significantFigures": 3,
        },
        "id__count": {
            "decimalPlaces": 0,
            "highCutOff": 10000000000.0,
            "lowCutOff": 0.0001,
            "significantFigures": 3,
        },
        "size__max": {
            "decimalPlaces": 0,
            "highCutOff": 10000000000.0,
            "lowCutOff": 0.0001,
            "significantFigures": 3,
        },
    },
    "length": 3,
    "limit": 1000,
    "model": "core.Product",
    "rows": [{"created_time__year": 2020.0}, {"created_time__year": 2021.0}],
}
