summaryrefslogtreecommitdiff
path: root/mirrors/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-27 12:44:30 -0600
committerDan McGee <dan@archlinux.org>2011-02-27 12:44:30 -0600
commit6d5909ca5dc8934cacd969e964573989dc6b0417 (patch)
tree69bba97e24b6ae67861884bf93362f5274c78309 /mirrors/admin.py
parentdb1524fd64e8b5c0f43cfed7643034ee764f55fd (diff)
Auto-resolve mirror URLs on save
This prevents people from having to mess with these checkboxes at all in the admin, and we incur no delay on their initial values being correct waiting for the cron job to run. 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 f6a72cf0..b9c2876a 100644
--- a/mirrors/admin.py
+++ b/mirrors/admin.py
@@ -29,7 +29,7 @@ class MirrorUrlForm(forms.ModelForm):
class MirrorUrlInlineAdmin(admin.TabularInline):
model = MirrorUrl
form = MirrorUrlForm
- readonly_fields = ('protocol',)
+ readonly_fields = ('protocol', 'has_ipv4', 'has_ipv6')
extra = 3
# ripped off from django.forms.fields, adding netmask ability