Skip to content

Commit

Permalink
Fix file uploads not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasdeluna committed Sep 1, 2023
1 parent ebc60f3 commit 8551713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lego/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
)
router.register(r"feed-personal", PersonalFeedViewSet, basename="feed-personal")
router.register(r"feed-user/(?P<user_pk>\d+)", UserFeedViewSet, basename="feed-user")
router.register(r"files", FileViewSet, basename="files")
router.register(r"files", FileViewSet)
router.register(r"followers-company", FollowCompanyViewSet)
router.register(r"followers-event", FollowEventViewSet)
router.register(r"followers-user", FollowUserViewSet)
Expand Down
2 changes: 1 addition & 1 deletion lego/apps/files/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_post_create_file_call(self, mock_create_file):


def _get_detail_url(key):
return reverse("api:v1:files-imagegallery", kwargs={"key": key})
return f"/api/v1/files/{key}/imagegallery/"


class SetSaveForUserTest(BaseAPITestCase):
Expand Down

0 comments on commit 8551713

Please sign in to comment.