mirror of https://github.com/zulip/zulip.git
fd0434a052
Subsequent commits will add "on_delete=models.RESTRICT" relationships, which will result in the RealmEmoji objects being deleted after Realm has been deleted from the database. In order to handle this, we update get_realm_emoji_dicts, get_realm_emoji_cache_key, get_active_realm_emoji_cache_key, get_realm_emoji_uncached and get_active_realm_emoji_uncached functions to accept realm_id as parameter instead of realm object, so that the code for flushing the cache works even after the realm is deleted. This change is fine because eventually only realm_id is used by these functions and there is no need of the complete realm object. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |