mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
refactor: Replace HUDDLE with DIRECT_MESSAGE_GROUP.
Replaced HUDDLE attribute with DIRECT_MESSAGE_GROUP using VS Code search, part of a general renaming of the object class. Fixes part of #28640. Co-authored-by: JohnLu2004 <JohnLu10212004@gmail.com>
This commit is contained in:
@@ -1205,7 +1205,9 @@ def do_import_realm(import_dir: Path, subdomain: str, processes: int = 1) -> Rea
|
||||
process_huddle_hash(data, "zerver_huddle")
|
||||
bulk_import_model(data, Huddle)
|
||||
for huddle in Huddle.objects.filter(recipient=None):
|
||||
recipient = Recipient.objects.get(type=Recipient.HUDDLE, type_id=huddle.id)
|
||||
recipient = Recipient.objects.get(
|
||||
type=Recipient.DIRECT_MESSAGE_GROUP, type_id=huddle.id
|
||||
)
|
||||
huddle.recipient = recipient
|
||||
huddle.save(update_fields=["recipient"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user