Conform to naming conventions.

This commit is contained in:
Tom Hacohen 2020-12-27 17:03:17 +02:00
parent 92f6ccbc28
commit 611c0f3b0a

View File

@ -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)