A model template in your Django app
Posted on Tue 10 March 2020 in Python • Tagged with Python, Django • 3 min read
This is something I recently stumbled over. A way to reduce the DRY (Don't repeat yourself) in the models of your Django app.
Most of the times I find that I have the two same fields in my Django models. Added and edited. Both are DateTimeFields. Added gets the date …
Continue reading