Re: Filtering serializermethodfield in DRF

2021-02-24 Thread shreeh...@gmail.com
e you can pass query params to context > > On Wed, Feb 24, 2021, 10:15 shreeh...@gmail.com > wrote: > >> I have to filter my queryset based on a query param. I have to filter >> based on serializermethodfield. >> Any help would be appreciated. >> >> >>

Filtering serializermethodfield in DRF

2021-02-23 Thread shreeh...@gmail.com
I have to filter my queryset based on a query param. I have to filter based on serializermethodfield. Any help would be appreciated. Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Deleting models from django without affecting migrations

2021-02-14 Thread shreeh...@gmail.com
Hi, i want to delete few models which are redundant from few django apps. The main issue is that the codebase is quite big and in the future if we have to migrate again from the beginning, it might throw errors for sure. Any efficient/best way to handle this? Any kind of help will be appreciated

Optimising queries

2020-12-19 Thread shreeh...@gmail.com
Hey guys how can i optimize the below code ? https://del.dog/grorottefe.txt There's only 2 objects created for this model im using. Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Django channels invalid state

2020-09-17 Thread shreeh...@gmail.com
I have built a chat(One to one) application with django channels, redis. When both the users send msg at same time, an error occurs saying Invalid state. Frontend is react natie > backend is drf. Can someone please help me with this ASAP ? Thank you -- You received this message because you ar

Django channels handshake failed

2020-08-06 Thread shreeh...@gmail.com
When i try to connect to the socket with js(from chrome console), handshake fails. when i try to connect the same port using websocket-client(python), it connects without any errors. Can someone please help me with it. -- You received this message because you are subscribed to the Google Groups