gustavi/zds-site — pull request #16 by GerardPaligot (2014-12-29 22:44:22+00:00)
Title: Adds pagination in list in API

Ajoute la pagination dans les listes de l'API. Voici ce que donne la liste des membres avec la pagination :

```json
{
"count": 16,
"next": "http://localhost:8000/api/membres/?page=2",
"previous": null,
"results": [
{
"id": 16,
"username": "user10",
"email": "email10@email.com",
"is_active": false,
"date_joined": "2014-12-29T22:24:49.158187"
},
{
"id": 15,
"username": "user9",
"email": "admin@admin.com",
"is_active": false,
"date_joined": "2014-12-29T22:24:00.998709"
},
{
"id": 14,
"username": "user7",
"email": "email7@email.com",
"is_active": false,
"date_joined": "2014-12-29T22:13:43.436301"
},
{
"id": 13,
"username": "user6",
"email": "email6@email.com",
"is_active": false,
"date_joined": "2014-12-29T02:24:43.165852"
},
{
"id": 12,
"username": "user5",
"email": "email5@email.com",
"is_active": false,
"date_joined": "2014-12-29T01:48:24.547008"
},
{
"id": 11,
"username": "user4",
"email": "email4@email.com",
"is_active": false,
"date_joined": "2014-12-29T01:40:18.297339"
},
{
"id": 10,
"username": "user3",
"email": "email23@email.com",
"is_active": false,
"date_joined": "2014-12-29T01:39:32.523008"
},
{
"id": 9,
"username": "user2",
"email": "email2@email.com",
"is_active": true,
"date_joined": "2014-12-29T01:38:56.561351"
},
{
"id": 8,
"username": "user1",
"email": "email@email.com",
"is_active": true,
"date_joined": "2014-12-29T01:37:16.703046"
},
{
"id": 7,
"username": "test",
"email": "test@test.com",
"is_active": false,
"date_joined": "2014-12-28T22:46:23.265481"
}
]
}
```

J'ai presque honte de faire une PR pour ça ...