zulip/zerver
Anders Kaseorg 2d9b2a2a05 models: Remove type prefixes from __str__ values.
The Django convention is for __repr__ to include the type and __str__
to omit it.  In fact its default __repr__ implementation for models
automatically adds a type prefix to __str__, which has resulted in the
type being duplicated:

    >>> UserProfile.objects.first()
    <UserProfile: <UserProfile: emailgateway@zulip.com <Realm: zulipinternal 1>>>

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-08 22:56:55 -08:00
..
actions create_user: Refactor notify_created_user function. 2023-03-07 15:11:03 -08:00
data_import upload: Rename upload_message_file to use word "attachment". 2023-03-02 16:36:19 -08:00
integration_fixtures/nagios
lib test_classes: Provide path to test-backend for ease of copy/paste. 2023-03-07 15:02:31 -08:00
management python: Import F, Q, QuerySet from their canonical module. 2023-03-05 14:46:28 -08:00
migrations migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
openapi openapi: Add links to email_address_visibility help documentation. 2023-03-07 15:11:28 -08:00
tests models: Remove type prefixes from __str__ values. 2023-03-08 22:56:55 -08:00
tornado tornado: Replace dataclasses.asdict() call, as it is slow. 2023-02-23 11:01:38 -08:00
views google_analytics: Track realm registration separately from user signup. 2023-03-08 11:34:36 -08:00
webhooks integrations: Update Asana integration doc to point to Zapier. 2023-03-02 13:51:34 -08: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 sentry: Enable reporting on portico and other unauth pages. 2023-03-07 15:01:27 -08:00
decorator.py request-notes: Add `is_webhook_view` boolean to fields. 2023-03-06 10:33:13 -08:00
filters.py
forms.py registration: Add code to set email_address_visibility during signup. 2023-02-24 09:23:34 -08: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: Remove type prefixes from __str__ values. 2023-03-08 22:56:55 -08:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00