mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 03:43:12 +00:00
Pas de cname sur les mx
This commit is contained in:
parent
7ff4cfa570
commit
8c0b84e12a
1 changed files with 5 additions and 1 deletions
|
@ -142,6 +142,10 @@ class MxForm(ModelForm):
|
||||||
model = Mx
|
model = Mx
|
||||||
fields = ['zone', 'priority', 'name']
|
fields = ['zone', 'priority', 'name']
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(MxForm, self).__init__(*args, **kwargs)
|
||||||
|
self.fields['name'].queryset = Domain.objects.exclude(interface_parent=None)
|
||||||
|
|
||||||
class DelMxForm(ModelForm):
|
class DelMxForm(ModelForm):
|
||||||
mx = forms.ModelMultipleChoiceField(queryset=Mx.objects.all(), label="MX actuels", widget=forms.CheckboxSelectMultiple)
|
mx = forms.ModelMultipleChoiceField(queryset=Mx.objects.all(), label="MX actuels", widget=forms.CheckboxSelectMultiple)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue