tomchristie/django-rest-framework — pull request #430 by j4mie (2012-11-19 17:27:36+00:00)
Title: Serializer method field

Adding a new field type, `SerializerMethodField`, that calls a method on the `serializer` instance. For example, you can do nasty/weird things like:

```python
def SomeSerializer(serializers.Serializer):

current_date = serializers.SerializerMethodField('get_current_date')

def get_current_date(self, obj):
return datetime.datetime.utcnow().isoformat()
```

And/or all manner of actually useful things.

Thoughts?