Код: Выделить всё
AttributeError: 'ModelField' object has no attribute '_type_display'Код: Выделить всё
def _query_param_dict(self, query_param):
"""Transform query param (ModelField) to dict for jinja2"""
as_str = f"{query_param.name}"
type_display = query_param._type_display()
Подробнее здесь: https://stackoverflow.com/questions/789 ... fter-upgra