Re:Elixir for Humans Who Know Python
by spapas82 on Saturday February 25, 2023 @02:10PM
(#34939482)
Please notice that nothing stops you from defining a non managed (ie Django migrations won't mess with it) model pointing to the same table and having declared only three of the fields of the original model.
[ Parent
| on HN ]
Re:Elixir for Humans Who Know Python
by traverseda on Saturday February 25, 2023 @03:02PM
(#34939886)
That is more elegant than using a proxy model
The Django docs also mention that
https://docs.djangoproject.com/en/4.1/topics/db/models/#diff...
> If you are mirroring an existing model or database table and don’t want all the original database table columns, use Meta.managed=False.