2020-01-21 06:35:58 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
if "newsletter" in settings.INSTALLED_APPS:
|
2020-01-21 06:35:58 +00:00
|
|
|
from newsletter.models import Subscription
|
|
|
|
else:
|
|
|
|
Subscription = None
|
|
|
|
|
2022-05-14 17:57:27 +00:00
|
|
|
newsletter_id = (
|
|
|
|
None if Subscription is None else settings.DMOJ_NEWSLETTER_ID_ON_REGISTER
|
|
|
|
)
|