Hacker News new | ask | show | jobs
by selcuka 2 days ago
> some times you might want more than one schema for a db table

Django has the concept of "proxy models" where you can define a trimmed down model for the same database table.

1 comments

what if two models access disjoint sets of fields (like a Data.Admin and Data.User)
Two proxy models that extend the same base model.