3a1101db1d
More generally, add a new 'default' column to the mirror protocol model so we can determine what is selected and shown by default. Signed-off-by: Dan McGee <dan@archlinux.org>
30 lines
608 B
JSON
30 lines
608 B
JSON
[
|
|
{
|
|
"pk": 1,
|
|
"model": "mirrors.mirrorprotocol",
|
|
"fields": {
|
|
"is_download": true,
|
|
"default": true,
|
|
"protocol": "http"
|
|
}
|
|
},
|
|
{
|
|
"pk": 2,
|
|
"model": "mirrors.mirrorprotocol",
|
|
"fields": {
|
|
"is_download": true,
|
|
"default": false,
|
|
"protocol": "ftp"
|
|
}
|
|
},
|
|
{
|
|
"pk": 3,
|
|
"model": "mirrors.mirrorprotocol",
|
|
"fields": {
|
|
"is_download": false,
|
|
"default": false,
|
|
"protocol": "rsync"
|
|
}
|
|
}
|
|
]
|