diff options
author | Dan McGee <dan@archlinux.org> | 2014-11-01 12:31:52 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-11-01 12:31:52 -0500 |
commit | e609552c59d05a41b98e786047d1ff02c1e3ab10 (patch) | |
tree | e91cf9c7abbb4db48272584681b091ba200c8d7e /mirrors/models.py | |
parent | e7449f7063f3f56af118ed8ad703ec3fce6bc39a (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/models.py')
-rw-r--r-- | mirrors/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mirrors/models.py b/mirrors/models.py index 641a6b97..820f3328 100644 --- a/mirrors/models.py +++ b/mirrors/models.py @@ -72,8 +72,9 @@ class MirrorUrl(models.Model): editable=False) has_ipv6 = models.BooleanField("IPv6 capable", default=False, editable=False) - created = models.DateTimeField(editable=False) active = models.BooleanField(default=True) + bandwidth = models.FloatField("bandwidth (mbits)", null=True, blank=True) + created = models.DateTimeField(editable=False) class Meta: verbose_name = 'mirror URL' |