diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-27 12:44:30 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-27 12:44:30 -0600 |
commit | 6d5909ca5dc8934cacd969e964573989dc6b0417 (patch) | |
tree | 69bba97e24b6ae67861884bf93362f5274c78309 /mirrors/admin.py | |
parent | db1524fd64e8b5c0f43cfed7643034ee764f55fd (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.py | 2 |
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 |