Skip to content

Commit

Permalink
feature: passing underscore in meta
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Oct 18, 2023
1 parent 5b5e443 commit 3005b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chats/apps/rooms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_editable_custom_fields_room(room_filter: dict) -> Room:


def create_transfer_json(action: str, from_, to):
if hasattr(from_, "meta"):
if hasattr(from_, "_meta"):
return {
"action": action,
"from": {"type": from_._meta.model_name, "name": from_.name},
Expand Down

0 comments on commit 3005b09

Please sign in to comment.