mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 14:42:25 +00:00
Optimisations de chargement
This commit is contained in:
parent
7bd02c6c36
commit
42c1fe4e61
1 changed files with 5 additions and 3 deletions
|
@ -296,7 +296,7 @@ class MxForm(ModelForm):
|
||||||
super(MxForm, self).__init__(*args, prefix=prefix, **kwargs)
|
super(MxForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||||
self.fields['name'].queryset = Domain.objects.exclude(
|
self.fields['name'].queryset = Domain.objects.exclude(
|
||||||
interface_parent=None
|
interface_parent=None
|
||||||
)
|
).select_related('extension')
|
||||||
|
|
||||||
|
|
||||||
class DelMxForm(Form):
|
class DelMxForm(Form):
|
||||||
|
@ -309,7 +309,9 @@ class DelMxForm(Form):
|
||||||
|
|
||||||
|
|
||||||
class NsForm(ModelForm):
|
class NsForm(ModelForm):
|
||||||
"""Ajout d'un NS pour une zone"""
|
"""Ajout d'un NS pour une zone
|
||||||
|
On exclue les CNAME dans les objets domain (interdit par la rfc)
|
||||||
|
donc on prend uniquemet """
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Ns
|
model = Ns
|
||||||
fields = ['zone', 'ns']
|
fields = ['zone', 'ns']
|
||||||
|
@ -319,7 +321,7 @@ class NsForm(ModelForm):
|
||||||
super(NsForm, self).__init__(*args, prefix=prefix, **kwargs)
|
super(NsForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||||
self.fields['ns'].queryset = Domain.objects.exclude(
|
self.fields['ns'].queryset = Domain.objects.exclude(
|
||||||
interface_parent=None
|
interface_parent=None
|
||||||
)
|
).select_related('extension')
|
||||||
|
|
||||||
|
|
||||||
class DelNsForm(Form):
|
class DelNsForm(Form):
|
||||||
|
|
Loading…
Reference in a new issue