13👍
✅
You could just wrap your instance in a list:
response.write(serializers.serialize("json", [yes])
- [Django]-Django Channels stops working with self.receive_lock.locked error
- [Django]-How to call multiple views on one url in pinax
- [Django]-Cannot urlencode() after storing QueryDict in session
- [Django]-Django : custom management command not registered using app config
- [Django]-How can I get an access to url paramaters in django rest framework permission class?
Source:stackexchange.com