Skip to content

Commit 3f2ba37

Browse files
committed
fix get or create
1 parent 5a20bba commit 3f2ba37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexer_app/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ def handle_new_stellar_list_registration(
21362136
parent_list = List.objects.get(on_chain_id=data["list_id"], chain=chain)
21372137
try:
21382138
project = Account.objects.get_or_create(
2139-
{"chain": chain, "id": data["registrant_id"]}
2139+
defaults={"chain": chain}, id=data["registrant_id"]
21402140
)
21412141
except Exception as e:
21422142
logger.error(f"Encountered error trying to get create acct: {e}")

0 commit comments

Comments
 (0)