zulip/zerver
Sahil Batra 03a0cfda64 settings: Set enable_marketing_emails after copying user settings.
We set the enable_marketing_emails setting after copying user
settings to override the value selected in registration form.
This change is also necessary because enable_marketing_emails
field is present in RealmUserDefault to avoid copying code
but we do not use this value actually and instead we want
the setting to be set according to the value in registration
form.

We set this setting only for non-bot users since we generally
do not set any settings for bots.
2021-09-09 10:15:07 -07:00
..
data_import python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib settings: Set enable_marketing_emails after copying user settings. 2021-09-09 10:15:07 -07:00
management outgoing_http: Use OutgoingSession subclasses in more places. 2021-09-01 05:34:13 -07:00
migrations migrations: Fix system bot realm not having a name. 2021-09-09 09:50:43 -07:00
openapi docs: Add missing space in “emoji set”. 2021-09-08 15:31:28 -07:00
tests settings: Set enable_marketing_emails after copying user settings. 2021-09-09 10:15:07 -07:00
tornado Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
views user_settings: Extract setting values checks to a function. 2021-09-09 10:15:07 -07:00
webhooks request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
worker Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
decorator.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py send_email: Log IP address sources (and more realms) of send_email. 2021-08-31 16:36:42 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
models.py models: Make realm.name no longer nullable. 2021-09-08 17:38:56 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00