Django says the Models should be used as an Active Record and include persistence and business logic. What to do when the business logic requires access to unrelated models? Is it an antipattern to make queries from model instances? I see the queries are made from views and it is assumed that all dependencies of a model are covered by its database fields.
Aucun commentaire:
Enregistrer un commentaire