tomchristie/django-rest-framework — pull request #369 by asfaltboy (2012-11-05 07:58:33+00:00)
Title: Add the ability to add read_only_fields in bulk in serializer model

This is a simple tweak, again for the serializer model, to allow quickly defining multiple model fields as read_only, the usage should be as follows:

```
class MySerializer(serializers.ModelSerializer):
class Meta:
model = Fruit

read_only_fields = ("color", "texture", "flavor", "family",)
```

I found myself needing this to avoid defining numerous model fields explicitly just for the sake of setting read_only.

Please tell me if you like this, and if so, I'll update the docs and tests for it.