zulip/zproject
sahil839 a4c3224328 users: Remove redundant get_role_for_new_user in lib/create_user.py.
The function get_role_for_new_user was added to get role from the
invited_as value, as invited_as values were one of (1,2,3,4)
previously, but it was then changed to be the actual role value,
i.e. one of (100, 200, 400, 600), in 1f8f227444.

So, we can safely remove this function now and use invited_as value
directly and handle realm_creation case by using an if condition.
2021-04-30 15:57:09 -07:00
..
jinja2 i18n: Pass language name with every response. 2021-04-24 13:00:27 -07:00
__init__.py
backends.py users: Remove redundant get_role_for_new_user in lib/create_user.py. 2021-04-30 15:57:09 -07:00
computed_settings.py requirements: Remove django-webpack-loader. 2021-04-06 09:31:35 -07:00
config.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
configured_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
default_settings.py ldap: Add advanced LDAP realm access control. 2021-04-28 09:08:13 -07:00
dev_settings.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
dev_urls.py refactor: Move dev related code from `urls.py` to `dev_urls.py`. 2021-04-23 15:11:44 -07:00
email_backends.py emails: Fix outgoing email handling inside the dev environment. 2021-04-28 18:00:37 -07:00
legacy_urls.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
prod_settings_template.py ldap: Add advanced LDAP realm access control. 2021-04-28 09:08:13 -07:00
sentry.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
settings.py python: Add noqa comments for the specific star imports we allow. 2020-06-11 15:36:43 -07:00
terms.md.template docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
test_extra_settings.py requirements: Remove django-webpack-loader. 2021-04-06 09:31:35 -07:00
test_settings.py test_settings: Use TEST_EXTERNAL_HOST to override ‘testserver’ default. 2020-12-17 13:07:59 -08:00
urls.py refactor: Move dev related code from `urls.py` to `dev_urls.py`. 2021-04-23 15:11:44 -07:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00