toastdriven/django-tastypie — pull request #634 by dekoza (2012-08-21 09:30:57+00:00)
Title: Allow registering of Resources the DRY way

This patch allows for more DRY-compliant registering of Resources.

This is compatible with current way (registering of instances) but also allows for registering of classes only and classes/instances provided in an iterable.

Example usages:

```python
from tastypie.api import Api
# and other imports

v1 = Api(api_name='v1')

# define Resources
# (...)

v1.register(FirstResource)
v1.register(SecondResource())
v1.register([ThirdResource(), FourthResource])
```