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
6077a773
Commit
6077a773
authored
Nov 15, 2017
by
Gabriel Detraz
Committed by
root
Nov 15, 2017
Browse files
Fix bug sur l'edition du txt + élargi le champ pour dnssec
parent
8904cc14
Changes
4
Hide whitespace changes
Inline
Side-by-side
machines/migrations/0064_auto_20171115_0253.py
0 → 100644
View file @
6077a773
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-11-15 01:53
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'machines'
,
'0063_auto_20171020_0040'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'text'
,
name
=
'field2'
,
field
=
models
.
TextField
(
max_length
=
2047
),
),
]
machines/models.py
View file @
6077a773
...
...
@@ -388,7 +388,7 @@ class Text(models.Model):
zone
=
models
.
ForeignKey
(
'Extension'
,
on_delete
=
models
.
PROTECT
)
field1
=
models
.
CharField
(
max_length
=
255
)
field2
=
models
.
Char
Field
(
max_length
=
2
55
)
field2
=
models
.
Text
Field
(
max_length
=
2
047
)
def
__str__
(
self
):
return
str
(
self
.
zone
)
+
" : "
+
str
(
self
.
field1
)
+
" "
+
\
...
...
machines/templates/machines/aff_txt.html
View file @
6077a773
...
...
@@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th></th>
</tr>
</thead>
{% for txt in txt_list %}
{% for txt in t
e
xt_list %}
<tr>
<td>
{{ txt.zone }}
</td>
<td>
{{ txt.dns_entry }}
</td>
...
...
machines/urls.py
View file @
6077a773
...
...
@@ -51,7 +51,7 @@ urlpatterns = [
url
(
r
'^edit_mx/(?P<mxid>[0-9]+)$'
,
views
.
edit_mx
,
name
=
'edit-mx'
),
url
(
r
'^del_mx/$'
,
views
.
del_mx
,
name
=
'del-mx'
),
url
(
r
'^add_txt/$'
,
views
.
add_txt
,
name
=
'add-txt'
),
url
(
r
'^edit_txt/(?P<t
e
xtid>[0-9]+)$'
,
views
.
edit_txt
,
name
=
'edit-txt'
),
url
(
r
'^edit_txt/(?P<txtid>[0-9]+)$'
,
views
.
edit_txt
,
name
=
'edit-txt'
),
url
(
r
'^del_txt/$'
,
views
.
del_txt
,
name
=
'del-txt'
),
url
(
r
'^add_ns/$'
,
views
.
add_ns
,
name
=
'add-ns'
),
url
(
r
'^edit_ns/(?P<nsid>[0-9]+)$'
,
views
.
edit_ns
,
name
=
'edit-ns'
),
...
...
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