Move notifier and notification_prefs to discussion/

This commit is contained in:
Nimisha Asthagiri
2019-04-29 03:13:54 -04:00
parent e160b23903
commit 7b4b6c3539
19 changed files with 18 additions and 22 deletions

View File

@@ -15,8 +15,10 @@ from django.db import transaction
from django.dispatch import Signal
from django.utils.translation import get_language
from django.utils.translation import ugettext as _
# Note that this lives in LMS, so this dependency should be refactored.
from notification_prefs.views import enable_notifications
# TODO Have the discussions code subscribe to the REGISTER_USER signal instead.
from lms.djangoapps.discussion.notification_prefs.views import enable_notifications
from pytz import UTC
from requests import HTTPError
from six import text_type

View File

@@ -17,7 +17,7 @@ from django.test.utils import override_settings
from django.contrib.auth.hashers import make_password
from django_comment_common.models import ForumsConfig
from notification_prefs import NOTIFICATION_PREF_KEY
from lms.djangoapps.discussion.notification_prefs import NOTIFICATION_PREF_KEY
from openedx.core.djangoapps.user_authn.views.register import (
REGISTRATION_AFFILIATE_ID, REGISTRATION_UTM_CREATED_AT, REGISTRATION_UTM_PARAMETERS,
_skip_activation_email,