Conform to naming conventions.

master
Tom Hacohen 4 years ago
parent 92f6ccbc28
commit 611c0f3b0a

@ -285,7 +285,7 @@ async def create(data: CollectionIn, user: User = Depends(get_authenticated_user
@collection_router.get("/{uid}/")
def get_collection(uid: str, user: User = Depends(get_authenticated_user), prefetch: Prefetch = PrefetchQuery):
def collection_get(uid: str, user: User = Depends(get_authenticated_user), prefetch: Prefetch = PrefetchQuery):
obj = get_collection_queryset(user, default_queryset).get(uid=uid)
ret = CollectionOut.from_orm_context(obj, Context(user, prefetch))
return MsgpackResponse(ret)

Loading…
Cancel
Save