mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
models: Rename zerver/models.py to zerver/models/__init__.py.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9d11f2c8fc
commit
e601d0ae7c
@@ -554,7 +554,7 @@ def changed(update_fields: Optional[Sequence[str]], fields: List[str]) -> bool:
|
||||
return any(f in update_fields_set for f in fields)
|
||||
|
||||
|
||||
# Called by models.py to flush the user_profile cache whenever we save
|
||||
# Called by models/__init__.py to flush the user_profile cache whenever we save
|
||||
# a user_profile object
|
||||
def flush_user_profile(
|
||||
*,
|
||||
@@ -591,7 +591,7 @@ def flush_muting_users_cache(*, instance: "MutedUser", **kwargs: object) -> None
|
||||
cache_delete(get_muting_users_cache_key(mute_object.muted_user_id))
|
||||
|
||||
|
||||
# Called by models.py to flush various caches whenever we save
|
||||
# Called by models/__init__.py to flush various caches whenever we save
|
||||
# a Realm object. The main tricky thing here is that Realm info is
|
||||
# generally cached indirectly through user_profile objects.
|
||||
def flush_realm(
|
||||
@@ -639,7 +639,7 @@ def realm_text_description_cache_key(realm: "Realm") -> str:
|
||||
return f"realm_text_description:{realm.string_id}"
|
||||
|
||||
|
||||
# Called by models.py to flush the stream cache whenever we save a stream
|
||||
# Called by models/__init__.py to flush the stream cache whenever we save a stream
|
||||
# object.
|
||||
def flush_stream(
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user