mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
fix_unreads: Add docstring explaining migration use case.
This commit is contained in:
@@ -12,6 +12,13 @@ from django.db import connection
|
||||
|
||||
from zerver.models import UserProfile
|
||||
|
||||
'''
|
||||
NOTE! Be careful modifying this library, as it is used
|
||||
in a migration, and it needs to be valid for the state
|
||||
of the database that is in place when the 0104_fix_unreads
|
||||
migration runs.
|
||||
'''
|
||||
|
||||
logger = logging.getLogger('zulip.fix_unreads')
|
||||
logger.setLevel(logging.WARNING)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user