I wrote a short blog post on how I use to design my models:
[https://timniets.com/how-to-design-good-django-models/](https://timniets.com/how-to-design-good-django-models/)
Do you got any tips for improvements?
Answers to your questions
I wrote a short blog post on how I use to design my models:
[https://timniets.com/how-to-design-good-django-models/](https://timniets.com/how-to-design-good-django-models/)
Do you got any tips for improvements?
I guess my tip would be any code that interacts with the model should be put in the model. The rest of your code will turn out so much clearer.
When I first start I only defined the models attributes, and then did the model manipulation in the view… your views will very quickly become less clear..