Calculation field - best practice

2020-01-21 Thread Mario Bisiani
Good morning, first post here! I have a quesion for you. I need to have a calculated field from two attribute of different class in model.py. Which is the best practice to perform calcs : in model.py by function or in the view.py? In the case of model.py how can i access the atribut of the dif

Re: Calculation field - best practice

2020-01-21 Thread Sencer Hamarat
IMO this should be done in view if it's just for display purposes in rendered page. Although, the best method is doing it in a template tag. Regards, Sencer HAMARAT On Tue, Jan 21, 2020 at 3:30 PM Mario Bisiani wrote: > Good morning, > > first post here! > > I have a quesion for you. I need t