Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jtjun committed Jun 19, 2019
2 parents 67ff935 + 3c2cab1 commit 425b269
Show file tree
Hide file tree
Showing 37 changed files with 5,198 additions and 4,967 deletions.
5 changes: 4 additions & 1 deletion backend/src/dutch_broomstick/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def update(self, instance, validated_data):

instance.save()

Profile.objects.update_or_create(user=instance, **profile_data)
profile = Profile.objects.get(user=instance)
profile.default_account = profile_data.get('default_account', profile.default_account)
profile.default_nickname = profile_data.get('default_nickname', profile.default_nickname)
profile.save()
return instance


Expand Down
2 changes: 1 addition & 1 deletion backend/src/dutch_broomstick/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_create_payment(self):

# Payment 생성 요청
response = self.client.post(
f"/api/rooms/{room_json.get('url')}/layers/0/payments",
f"/api/rooms/{room_json.get('url')}/layers/0/payments/",
{
'fromWho': 'test1',
'forWhat': "고깃집",
Expand Down
2 changes: 1 addition & 1 deletion backend/src/dutch_broomstick/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
views.LayerDetailView.as_view()),

# payment urls
path('rooms/<str:url>/layers/<int:number>/payments',
path('rooms/<str:url>/layers/<int:number>/payments/',
views.PaymentCreateView.as_view()),
path('rooms/<str:url>/layers/<int:number>/payments/<str:id>',
views.PaymentDetailView.as_view()),
Expand Down
Loading

0 comments on commit 425b269

Please sign in to comment.