rosarior/mayan — pull request #41 by datakid (2012-12-14 03:59:45+00:00)
Title: Djangorestframework update

Here are a couple of simple changes that update Mayan to work with Django Rest Framework 2.x from Django Rest Framework 0.x

There are still some missing pieces - not fully understanding Mayan or DRF completely, I've only done enough to stop errors when running the develeopment server (./manage.py runserver).

In particular, there are two obvious problems with this code:
1. class DocumentResourceSimple had a method called versions, which I've commented out to get Mayan running. I'm not 100% sure, but I think using SerializerMethodFields should make it all right
http://django-rest-framework.org/api-guide/fields.html#serializermethodfield

2. I'm not fully across the Mayan code base, so there could be errors I've not seen where other parts of the code base call the rest API.

Anyway, I hope that helps.

Cheers
L.