zulip/zerver/views
rht 41e3db81be dependencies: Upgrade to Django 2.2.10.
Django 2.2.x is the next LTS release after Django 1.11.x; I expect
we'll be on it for a while, as Django 3.x won't have an LTS release
series out for a while.

Because of upstream API changes in Django, this commit includes
several changes beyond requirements and:

* urls: django.urls.resolvers.RegexURLPattern has been replaced by
  django.urls.resolvers.URLPattern; affects OpenAPI code and related
  features which re-parse Django's internals.
  https://code.djangoproject.com/ticket/28593
* test_runner: Change number to suffix. Django changed the name in this
  ticket: https://code.djangoproject.com/ticket/28578
* Delete now-unnecessary SameSite cookie code (it's now the default).
* forms: urlsafe_base64_encode returns string in Django 2.2.
  https://docs.djangoproject.com/en/2.2/ref/utils/#django.utils.http.urlsafe_base64_encode
* upload: Django's File.size property replaces _get_size().
  https://docs.djangoproject.com/en/2.2/_modules/django/core/files/base/
* process_queue: Migrate to new autoreload API.
* test_messages: Add an extra query caused by .refresh_from_db() losing
  the .select_related() on the Realm object.
* session: Sync SessionHostDomainMiddleware with Django 2.2.

There's a lot more we can do to take advantage of the new release;
this is tracked in #11341.

Many changes by Tim Abbott, Umair Waheed, and Mateusz Mandera squashed
are squashed into this commit.

Fixes #10835.
2020-02-13 16:27:26 -08:00
..
development scripts: Move inline-email-css from tools to scripts. 2019-11-15 17:39:42 -08:00
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
archive.py messages_for_topic: Use stream.recipient_id for more efficient query. 2020-02-11 17:39:43 -08:00
attachments.py uploads: Show used upload space in attachments UI. 2019-03-07 20:18:00 -08:00
auth.py registration: Add support for mobile and desktop flows. 2020-02-12 11:22:16 -08:00
camo.py camo: Clean up type ignores. 2019-08-09 16:39:16 -07:00
compatibility.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
custom_profile_fields.py do_update_user_custom_profile_data: Rename to ..._if_changed. 2019-10-01 13:52:43 -07:00
digest.py digest: Fix the styling of /digest page. 2019-01-07 13:09:29 -08:00
documentation.py request: Tighten type checking on REQ. 2019-11-13 12:35:55 -08:00
email_mirror.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
events_register.py presence: Add slim_presence flag. 2020-02-04 12:30:34 -08:00
home.py home: Finish removing assumption that user_profile isn't None. 2020-02-05 16:16:33 -08:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
invite.py invitations: Avoid adding to notifications stream unconditionally. 2020-01-27 15:36:59 -08:00
messages.py recipients: Rename extract_recipients to extract_private_recipients. 2020-02-11 12:28:14 -08:00
muting.py muting: Record DateTime when a Topic is muted. 2020-02-02 20:49:53 -08:00
pointer.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
portico.py portico: Provide isolated single-page versions of /terms and /privacy . 2020-01-29 11:54:20 -08:00
presence.py presence: Rename get_status_dict_by_user(). 2020-02-06 17:16:22 -08:00
push_notifications.py push_notifications: Declare token of type str, not bytes. 2019-11-12 23:21:20 -08:00
reactions.py api: Remove legacy emoji reactions endpoint. 2019-11-12 13:07:06 -08:00
realm_domains.py lint: Fix calls to _() on computed strings. 2019-04-23 15:23:03 -07:00
realm_emoji.py openapi: Fix handling of parameters passed via the URL/path. 2019-08-19 15:06:08 -07:00
realm_export.py billing: Change RealmAuditLog.event_type from str to int. 2019-10-06 15:55:56 -07:00
realm_filters.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
realm_icon.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
realm_logo.py realm_logo: Remove redundant realm_logo_url function. 2019-08-20 12:07:20 -07:00
realm.py realm: Add private_message_policy setting. 2020-01-13 12:20:42 -08:00
registration.py registration: Add support for mobile and desktop flows. 2020-02-12 11:22:16 -08:00
report.py settings: Unset STATIC_ROOT in development. 2019-07-24 17:40:31 -07:00
storage.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
streams.py messages_for_topic: Use stream.recipient_id for more efficient query. 2020-02-11 17:39:43 -08:00
submessage.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
thumbnail.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
tutorial.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
typing.py recipients: Rename extract_recipients to extract_private_recipients. 2020-02-11 12:28:14 -08:00
unsubscribe.py emails: Move clear_scheduled_*emails to send_email.py. 2019-03-15 11:02:17 -07:00
upload.py dependencies: Upgrade to Django 2.2.10. 2020-02-13 16:27:26 -08:00
user_groups.py decorator: Extract require_user_group_edit_permission. 2019-11-18 15:13:29 -08:00
user_settings.py auth: Handle rate limiting in OurAuthenticationForm and user_settings. 2020-02-02 19:15:13 -08:00
users.py api: Add an api endpoint for GET /users/{id} 2020-02-07 10:36:31 -08:00
video_calls.py compose: Add support for using Zoom as the video chat provider. 2019-01-07 10:00:02 -08:00
zephyr.py zephyr: Fix typing for cred parameter. 2019-07-29 15:23:10 -07:00