mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Optimisations de chargement
This commit is contained in:
parent
4143558604
commit
71eed60ad9
1 changed files with 5 additions and 3 deletions
|
@ -296,7 +296,7 @@ class MxForm(ModelForm):
|
|||
super(MxForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||
self.fields['name'].queryset = Domain.objects.exclude(
|
||||
interface_parent=None
|
||||
)
|
||||
).select_related('extension')
|
||||
|
||||
|
||||
class DelMxForm(Form):
|
||||
|
@ -309,7 +309,9 @@ class DelMxForm(Form):
|
|||
|
||||
|
||||
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:
|
||||
model = Ns
|
||||
fields = ['zone', 'ns']
|
||||
|
@ -319,7 +321,7 @@ class NsForm(ModelForm):
|
|||
super(NsForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||
self.fields['ns'].queryset = Domain.objects.exclude(
|
||||
interface_parent=None
|
||||
)
|
||||
).select_related('extension')
|
||||
|
||||
|
||||
class DelNsForm(Form):
|
||||
|
|
Loading…
Reference in a new issue