Skip to content
Commit 1f3e9ace authored by Raphaël Hertzog's avatar Raphaël Hertzog
Browse files

accounts: fix is_subscribed_to()'s logic

The unit tests were actually passing but the method was doing the wrong
thing nevertheless. A functional test failure led me to this problem.

package.subscriptions is a list of EmailSettings objects and no longer
of UserEmail so we need an indirection in the .filter() to retrieve
the associated UserEmail objects.
parent ead5ffb1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment