mirror of https://github.com/zulip/zulip.git
2d9b2a2a05
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> |
||
---|---|---|
.. | ||
__init__.py | ||
counts.py | ||
fixtures.py | ||
time_utils.py |