Solution of Django ModelAdmin singleton problem. Lightning Talk from PyCon Berlin 2022:

Опубликовано: 02 Май 2026
на канале: Maxim Danilov
190
5

Class ModelAdmin from django.contrib.admin has bad design from start. Each registered Django ModelAdmin is a singleton, which creates a big barrier for every developer who uses Django Admin in their project. This slows down the project, creates problems when the same ModelAdmin is used by multiple users, and encourages programmers to implement hacks to get around the limitations of this (anti)pattern. How to solve this problem in 5 lines you can see in this video.