mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
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>
|
||
|---|---|---|
| .. | ||
| management | ||
| migrations | ||
| __init__.py | ||
| CHANGELOG.txt | ||
| LICENSE.txt | ||
| models.py | ||
| README.txt | ||
| settings.py | ||
=================== Django Confirmation =================== This is a generic object confirmation system for Django applications. For installation instructions, see the file "INSTALL.txt" in this directory; for instructions on how to use this application, and on what it provides, see the file "overview.txt" in the "docs/" directory.