Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
af714a7f
Commit
af714a7f
authored
Jan 03, 2019
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
2e3be7ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
topologie/migrations/0068_auto_20190102_1758.py
topologie/migrations/0068_auto_20190102_1758.py
+20
-0
topologie/models.py
topologie/models.py
+7
-7
No files found.
topologie/migrations/0068_auto_20190102_1758.py
0 → 100644
View file @
af714a7f
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2019-01-02 23:58
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'topologie'
,
'0067_auto_20181230_1819'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'modelswitch'
,
name
=
'is_itself_module'
,
field
=
models
.
BooleanField
(
default
=
False
,
help_text
=
'Is the switch, itself, considered as a module'
),
),
]
topologie/models.py
View file @
af714a7f
...
...
@@ -251,7 +251,7 @@ class Switch(AclMixin, Machine):
default
=
False
,
help_text
=
'Provision automatique de ce switch'
,
)
class
Meta
:
unique_together
=
(
'stack'
,
'stack_member_id'
)
...
...
@@ -404,11 +404,11 @@ class ModelSwitch(AclMixin, RevMixin, models.Model):
is_modular
=
models
.
BooleanField
(
default
=
False
,
help_text
=
_
(
"Is this switch model modular"
),
)
)
is_itself_module
=
models
.
BooleanField
(
default
=
False
,
help_text
=
_
(
"
Doe
s the switch, itself, considered as a module"
),
)
help_text
=
_
(
"
I
s the switch, itself, considered as a module"
),
)
class
Meta
:
permissions
=
(
...
...
@@ -429,14 +429,14 @@ class ModuleSwitch(AclMixin, RevMixin, models.Model):
reference
=
models
.
CharField
(
max_length
=
255
,
help_text
=
_
(
"Reference of a module"
),
verbose_name
=
_
(
"Module reference"
)
verbose_name
=
_
(
"Module reference"
)
)
comment
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
,
help_text
=
_
(
"Comment"
),
verbose_name
=
_
(
"Comment"
)
verbose_name
=
_
(
"Comment"
)
)
class
Meta
:
...
...
@@ -457,7 +457,7 @@ class ModuleOnSwitch(AclMixin, RevMixin, models.Model):
slot
=
models
.
CharField
(
max_length
=
15
,
help_text
=
_
(
"Slot on switch"
),
verbose_name
=
_
(
"Slot"
)
verbose_name
=
_
(
"Slot"
)
)
class
Meta
:
...
...
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