Re: "Project object has no attribute review_set"

2018-10-12 Thread Nelson Varela
Use the .review you've defined as related name. The _set is when you don't have a related name. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+uns

Re: "Project object has no attribute review_set"

2018-10-12 Thread Vijay Khemlani
9:25 AM Melissa Malala wrote: > Getting an error that says "Project object has no attribute review_set" > when trying to get the mean of ratings using Numpy. HTML looks something > like this, what could be the problem? Please have a look below and let us > know what

"Project object has no attribute review_set"

2018-10-12 Thread Melissa Malala
Getting an error that says "Project object has no attribute review_set" when trying to get the mean of ratings using Numpy. HTML looks something like this, what could be the problem? Please have a look below and let us know what you think: {{ project.review.count