models: Rename zerver/models.py to zerver/models/__init__.py.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-05 10:29:58 -08:00
committed by Tim Abbott
parent 9d11f2c8fc
commit e601d0ae7c
20 changed files with 31 additions and 31 deletions

View File

@@ -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(
*,