How to use the djangochannelsrestframework.observer.model_observer function in djangochannelsrestframework

To help you get started, we’ve selected a few djangochannelsrestframework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hishnash / djangochannelsrestframework / tests / test_observer.py View on Github external
        @model_observer(get_user_model())
        async def user_change(self, message, **kwargs):
            await self.send_json(message)
github hishnash / djangochannelsrestframework / tests / test_observer.py View on Github external
        @model_observer(get_user_model())
        async def user_other(self, message, **kwargs):
            await self.send_json(message)