На днях вышел Django 5.
▫️GeneratedField
Поля, которые автоматически рассчитываются по экспрешену (Database generated model field).
▫️Фасетный фильтр для админки
Показывает количество элементов для каждого фильтра.
▫️Async
Добавлены асинхроные функции django.contrib.auth, ORM. Ряд декораторов теперь поддерживаются асинхронными вьюшками.
▫️ORM
Новые возможносте полей, такие как поддержка словарей и функций в choices, дефолтные значения на стороне БД (Database-computed default values) с аргументом db_default и другие.
▫️Шаблоны
Новые возможности шаблонов, позволяющие писать меньше кода в формах.
#django
🌍 In Shenzhen, China, nearly all public buses and taxis run on electricity, making it the world’s first major city to fully switch its urban transit fleet to electric vehicles. ✨
#urbangeography⚡#transport⚡#innovation⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Melbourne, Australia, is regularly ranked as one of the world’s most liveable cities thanks to its blend of extensive parks, creative laneways, and a tram network that covers over 250 kilometers. ✨
#urbangeography⚡#citylife⚡#infrastructure⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The world’s tallest residential building, Central Park Tower in New York City, rises 472 meters. Ultratall skyscrapers like this change city skylines and challenge how we design urban living spaces. ✨
#urbangeography⚡#skyscraper⚡#citylife⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 In Seoul, over half the city’s rooftops host gardens, solar panels, or small farms—turning unused urban spaces into green zones that cool neighborhoods and boost local food production. ✨
#urbangeography⚡#cityplanning⚡#greencities⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels