zulip/zerver/views/development
Sahil Batra 00ffa3e870 registration: Remove redundant code.
Since we have updated the registration code to use
PreregistrationRealm objects for realm creation in
previous commits, some of the code has become
redundant and this commit removes it.

We remove the following code -
- The modification to PreregistrationUser objects in
process_new_human_user can now be done unconditionally
because prereg_user is passed only during user creation
and not realm creation. And we anyway do not expect
any PreregistrationUser objects inside the realm
during the creation.
- There is no need of "realm_creation" parameter in
create_preregistration_user function, since we now
use create_preregistration_realm during realm creation.

Fixes part of #24307.
2023-03-27 15:44:42 -07:00
..
__init__.py
cache.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
camo.py thumbnail: Remove unused is_camo_url parameter. 2021-08-19 01:51:37 -07:00
dev_login.py ruff: Fix RSE102 Unnecessary parentheses on raised exception. 2023-02-04 16:34:55 -08:00
email_log.py ruff: Fix SIM105 Use `contextlib.suppress` instead of try-except-pass. 2023-01-23 11:18:36 -08:00
integrations.py ruff: Fix SIM210 Use `bool(…)` instead of `True if … else False`. 2023-01-23 11:18:36 -08:00
registration.py registration: Remove redundant code. 2023-03-27 15:44:42 -07:00