AhmedSalam22
AhmedSalam22
How can i filter form based on the current login user? ex doen't work def __init__(self, **kwargs): super().__init__(**kwargs) self.form.fields["field"].queryset = model.objects.filter(owner=self.request.user)
 ` Traceback (most recent call last): File "C:\Users\admin\wwork\env\lib\site-packages\django\core\handlers\exception.py", line 42, in inner response = await get_response(request) File "C:\Users\admin\wwork\env\lib\site-packages\django\core\handlers\base.py", line 253, in _get_response_async response = await wrapped_callback( File "C:\Users\admin\wwork\ok-api\openbook_payments\views.py", line...
I get this error when I try see payment_details view  ` RuntimeError at /payment/3Trying to access master database in slave state Request Method: | GET -- | --...
  `2023-12-03 16:44:41,352 daphne.server ERROR Exception inside application: WebSocket client does not request for the subprotocol graphql-ws! Traceback (most recent call last): File "C:\Users\admin\wwork\env\lib\site-packages\channels\routing.py", line 62, in __call__ return...

How to use this package beside django filter can you give an example?