Added a base MessageType for ace
added unit tests updated edx-ace version fixed quality violations Fixed quality violations Changed ACEMessageType to BaseMessageType
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
"""
|
||||
ACE message types for the student module.
|
||||
"""
|
||||
from django.conf import settings
|
||||
|
||||
from edx_ace.message import MessageType
|
||||
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
|
||||
from openedx.core.djangoapps.ace_common.message import BaseMessageType
|
||||
|
||||
|
||||
class PasswordReset(MessageType):
|
||||
class PasswordReset(BaseMessageType):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(PasswordReset, self).__init__(*args, **kwargs)
|
||||
|
||||
self.options['transactional'] = True
|
||||
self.options['from_address'] = configuration_helpers.get_value(
|
||||
'email_from_address', settings.DEFAULT_FROM_EMAIL
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user