Skip to content

Commit 27657cd

Browse files
committed
fix: Django 1:N 모델에 직접 설정하려 한 에러 수정
1 parent 80fc5f5 commit 27657cd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/participant_portal_api/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ def apply_modification(self, save: bool = False) -> models.Model:
7373

7474
if save:
7575
sub_instance.save()
76-
77-
if not save:
78-
setattr(self.instance, field, sub_instances)
7976
elif isinstance(value, dict):
8077
# One to One case
8178
if not (sub_instance := getattr(self.instance, field, None)):

0 commit comments

Comments
 (0)