I have a tastypie ModelResource that I'd like to use to update one field of multiple instances of this Model at once.
class Message(models.Model):
# ... fields etc
unread = models.BooleanField(default=True)
I have tried to send a PATCH request (in tests, at the moment), but this doesn't work:
api = TestApiClient()
data = {'unread': False}
api.patch('/path/to/resource/', data=data)
Does anyone have any ideas? Thanks.