Vitaliy Kucheryaviy
Vitaliy Kucheryaviy
Yes, in nutshell this is the code I'm targeting for... but there are few things to deal with - like if you have async auth, but **not-a**sync operation or vice-versa
Hi @geeshta I guess you can just define custom class and use it in annotations: ```Python from django.http import HttpRequest as DjangoRequest class HttpRequest(DjangoRequest): auth: Any # or your obj...
@VityasZV I think at this moment you can just override the request method to pass your token/session/key/etc ```Python class AuthenticatedClient(TestClient): def request(self, method, path, data = {}, json = None,...
Hi @Lrakotoson well it works only when `from_orm` is involved: ``` >>> TaskSchema.from_orm(tasks[0]) TaskSchema(id=1, title='Task 1', completed=False, owner_first_name='John') ``` but I will take a look - maybe there is a...
@ihelmer07 Could you show some example where you write custom functions ?
@ihelmer07 I assume you talke about this method: ```Python @api.post("/order") def create_order(request, payload: OrderPostSchema): """ gives "AttributeError: 'int' object has no attribute 'pk'" when POSTing a payload that looks like:...
Hi @ihelmer07 @quroom so there is a bug in Manytomany fields - now it should work in pyalodas ( fixed in version 0.19.1)
@stephane @hongdoojung what's the expected body ? this: ```JSON {"start": 4} ``` or ```JSON 4 ```
Hi @wjhgg yes the planning is in progress... could you list features that are important for you ? - simple tokens - refresh tokens - expirations - rotations - blacklisting
I guess your goal would be to use id attrs instead of fk attrs in schema like ``` department_id: int = None ``` instead of ``` department: int = None...