grahamullrich
03/15/2018, 6:31 PMEmmanuel.King.Kasulani
03/15/2018, 6:31 PMgrahamullrich
03/15/2018, 6:31 PMRating.objects.get()
which will raise DoesNotExist
grahamullrich
03/15/2018, 6:32 PMEmmanuel.King.Kasulani
03/15/2018, 6:40 PMobject_id
manually to 100 in the method but no exception thrown 😕Emmanuel.King.Kasulani
03/15/2018, 6:45 PMgrahamullrich
03/15/2018, 6:46 PMgrahamullrich
03/15/2018, 6:47 PMuser_rating_value()
, I would think you could simply pass any object that has no Rating, include a category, and it should failgrahamullrich
03/15/2018, 6:48 PMEmmanuel.King.Kasulani
03/15/2018, 6:48 PMdjango
User objectgrahamullrich
03/15/2018, 6:49 PMwith self.assertRaises(Rating.DoesNotExist):
user_rating_value(user, user, category="anything")
Emmanuel.King.Kasulani
03/15/2018, 6:49 PMobject_id
manually, but a combination of those conditions have failed to raise an exceptiongrahamullrich
03/15/2018, 6:50 PMgrahamullrich
03/15/2018, 6:51 PMgrahamullrich
03/15/2018, 9:57 PMgrahamullrich
03/15/2018, 9:57 PMuser_rating_value()
already handles the exceptiongrahamullrich
03/15/2018, 9:58 PMgrahamullrich
03/15/2018, 9:59 PM.get()
params are not validgrahamullrich
03/15/2018, 9:59 PMEmmanuel.King.Kasulani
03/17/2018, 10:29 AMEmmanuel.King.Kasulani
03/17/2018, 11:10 AM32-33, 66-67, 105-106
in the file pinax/ratings/templatetags/pinax_ratings_tags.py
. Those are the lines that are in the except
block i was talking about earlier. Kindly see latest commit and advice if am wrongEmmanuel.King.Kasulani
03/17/2018, 11:12 AM52-55, 69, 96, 68->69
of the file pinax/ratings/models.py
. Please review the latest commit and advice if am wrong.Emmanuel.King.Kasulani
03/17/2018, 11:15 AM95%
on my local machine.grahamullrich
03/17/2018, 3:57 PMgrahamullrich
03/17/2018, 10:10 PMgrahamullrich
03/17/2018, 10:32 PMEmmanuel.King.Kasulani
03/18/2018, 5:03 AMEmmanuel.King.Kasulani
03/18/2018, 5:05 AMgrahamullrich
03/18/2018, 11:41 PMEmmanuel.King.Kasulani
03/19/2018, 8:49 AM