jshong0907

fix user api

...@@ -53,7 +53,7 @@ def create(request): ...@@ -53,7 +53,7 @@ def create(request):
53 created_at=timezone.now() 53 created_at=timezone.now()
54 ) 54 )
55 File.objects.create( 55 File.objects.create(
56 - id=uuid.uuid4(), 56 + id=root_folder,
57 owner_user_id=user.id, 57 owner_user_id=user.id,
58 type='folder', 58 type='folder',
59 name='user_%s' % user.id, 59 name='user_%s' % user.id,
...@@ -113,7 +113,7 @@ def find_me(request): ...@@ -113,7 +113,7 @@ def find_me(request):
113 'email': user[0].email, 113 'email': user[0].email,
114 'name': user[0].name, 114 'name': user[0].name,
115 'root_folder': user[0].root_folder, 115 'root_folder': user[0].root_folder,
116 - 'created_at': str(user[0].created_at) 116 + 'created_at': user[0].created_at
117 } 117 }
118 118
119 return {'result': True, 'data': data} 119 return {'result': True, 'data': data}
......