Closed KC-software-en closed 4 months ago
The code to retrieve a model a model is repeated in different views & in utils. Having a function in utils that can be called will make it more concise & modular.
Removed the code from the detail views in views.py & moved the function to utils.py. The views now call the function.
The code to retrieve a model a model is repeated in different views & in utils. Having a function in utils that can be called will make it more concise & modular.