Re: Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Joel Mathew
Thank you Matthew. Excellent advise as always. When I started off with this project 5 months ago, I was a beginner to both django and python. I've come a bit along the journey. That customer model is the first model I created, and I was unaware of these conventions. By the time I realized that,

RE: Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Matthew Pava
It was a little difficult to follow your message because the formatting is non-standard, but I think this might be what you’re looking for. Also, you should try to follow more Python coding conventions: models start with an upper case letter. Variables start with a lower case letter. And you