Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Fix bug 1261465: Send recover message only in supported languages #186

Merged
merged 1 commit into from
Apr 1, 2016

Conversation

pmclanahan
Copy link

If user language is not supported send english. Also clean up the task a
bit.

@@ -787,13 +787,6 @@ def attempt_fix(ext_name, record, task, e):

@et_task
def send_recovery_message_task(email):
# Have to import here to avoid circular import - that means that for
# testing, this can't be mocked. Mock look_for_user instead.
from news.views import get_user_data
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the circular import described in the comment above no longer an issue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the function was moved to utils.py and it seems this task was just never fixed. This was part of the upgrade to Django 1.8. It's imported at the top of the file and used by other tasks now.

If user language is not supported send english. Also clean up the task a
bit.
@pmclanahan
Copy link
Author

w00t! Tests fixed and one added.

@jgmize jgmize merged commit 6b63848 into mozilla:master Apr 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants