summaryrefslogtreecommitdiff
path: root/mirrors/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-11-01 12:31:52 -0500
committerDan McGee <dan@archlinux.org>2014-11-01 12:31:52 -0500
commite609552c59d05a41b98e786047d1ff02c1e3ab10 (patch)
treee91cf9c7abbb4db48272584681b091ba200c8d7e /mirrors/admin.py
parente7449f7063f3f56af118ed8ad703ec3fce6bc39a (diff)
Add bandwidth field to mirror URLs
Not using this anywhere just yet, but suggested by Florian so we can do some more fancy things down the road, like determine bandwidth by country. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/admin.py')
-rw-r--r--mirrors/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/admin.py b/mirrors/admin.py
index d5c89c2a..16a97ea2 100644
--- a/mirrors/admin.py
+++ b/mirrors/admin.py
@@ -11,7 +11,7 @@ from .models import (Mirror, MirrorProtocol, MirrorUrl, MirrorRsync,
class MirrorUrlForm(forms.ModelForm):
class Meta:
model = MirrorUrl
- fields = ('url', 'country', 'active')
+ fields = ('url', 'country', 'bandwidth', 'active')
def clean_url(self):
# is this a valid-looking URL?