Django model inheritance with proxy models

6889
0

Proxy models create different Python behavior for the same database table. I set proxy = True in Meta. This adds methods or changes default ordering without new tables. Proxy models share the same table as the original. Use cases include different manager methods, custom string representations, or model-specific admin interfaces. Unlike multi-table inheritance, there's no JOIN overhead. I use proxies for read-only variants or role-specific model APIs. This keeps code organized without database complexity.