Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
re2o
Commits
0d99a382
Commit
0d99a382
authored
Jan 05, 2017
by
Gabriel Detraz
Committed by
root
Jan 05, 2017
Browse files
Pas de cname sur les mx
parent
4ca23b73
Changes
1
Hide whitespace changes
Inline
Side-by-side
machines/forms.py
View file @
0d99a382
...
...
@@ -141,7 +141,11 @@ class MxForm(ModelForm):
class
Meta
:
model
=
Mx
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
):
mx
=
forms
.
ModelMultipleChoiceField
(
queryset
=
Mx
.
objects
.
all
(),
label
=
"MX actuels"
,
widget
=
forms
.
CheckboxSelectMultiple
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment