tomchristie/django-rest-framework — pull request #738 by dulaccc (2013-03-18 17:10:35+00:00)
Title: "Rails-like" relationship urls

The idea is to take the best from RoR ! ;)
I think their approach of relationship browsing is very intuitive and great to use.

With the following example taken from the doc
```python
class Album(models.Model):
album_name = models.CharField(max_length=100)
artist = models.CharField(max_length=100)

class Track(models.Model):
album = models.ForeignKey(Album, related_name='tracks')
order = models.IntegerField()
title = models.CharField(max_length=100)
duration = models.IntegerField()

class Meta:
unique_together = ('album', 'order')
order_by = 'order'

def __unicode__(self):
return '%d: %s' % (self.order, self.title)
```

we could access the tracks of an album with the url `/api/album/1/tracks`.

I'm working on an implementation, but all the ideas, thoughts and opinions are welcome.
First thing, do you think it's a good idea ?