zulip/zerver
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
..
actions registration: Remove redundant code. 2023-03-27 15:44:42 -07:00
data_import upload: Rename upload_message_file to use word "attachment". 2023-03-02 16:36:19 -08:00
integration_fixtures/nagios
lib models: Add PreregistrationRealm class. 2023-03-27 15:44:42 -07:00
management web: Save a 301 redirect from /terms/ to /policies/terms. 2023-03-24 14:51:01 -07:00
migrations models: Add PreregistrationRealm class. 2023-03-27 15:44:42 -07:00
openapi UserTopic: Set visibility_policy or delete UserTopic row without error. 2023-03-16 10:55:54 -07:00
tests register: Update the user-registration form for realm creation. 2023-03-27 15:44:42 -07:00
tornado tornado: Replace dataclasses.asdict() call, as it is slow. 2023-02-23 11:01:38 -08:00
views registration: Remove redundant code. 2023-03-27 15:44:42 -07:00
webhooks integration: Modify branch names for Bitbucket 2 events. 2023-03-27 10:09:25 -07:00
worker deferred_work: Log at start of the work. 2023-02-09 12:06:38 -08:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py templates: Add realm information fields in create_realm.html. 2023-03-27 15:44:42 -07:00
decorator.py request-notes: Add `is_webhook_view` boolean to fields. 2023-03-06 10:33:13 -08:00
filters.py
forms.py templates: Add realm information fields in create_realm.html. 2023-03-27 15:44:42 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
models.py models: Add PreregistrationRealm class. 2023-03-27 15:44:42 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00