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
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nounous-archives
intranet
Commits
8bbe8afe
Commit
8bbe8afe
authored
Jan 31, 2017
by
Gabriel Detraz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrations des prises
parent
70995ba7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
0 deletions
+94
-0
prises/migrations/0001_initial.py
prises/migrations/0001_initial.py
+48
-0
prises/migrations/0002_auto_20170130_2029.py
prises/migrations/0002_auto_20170130_2029.py
+26
-0
prises/migrations/0003_auto_20170130_2139.py
prises/migrations/0003_auto_20170130_2139.py
+20
-0
prises/migrations/__init__.py
prises/migrations/__init__.py
+0
-0
No files found.
prises/migrations/0001_initial.py
0 → 100644
View file @
8bbe8afe
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Prise'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'batiment'
,
models
.
CharField
(
max_length
=
1
)),
(
'chambre'
,
models
.
CharField
(
max_length
=
4
)),
(
'prise_crans'
,
models
.
IntegerField
(
null
=
True
,
blank
=
True
)),
(
'prise_crous'
,
models
.
IntegerField
(
null
=
True
,
blank
=
True
)),
(
'crans'
,
models
.
BooleanField
(
default
=
True
)),
(
'crous'
,
models
.
BooleanField
(
default
=
False
)),
(
'commentaire'
,
models
.
CharField
(
max_length
=
1024
,
null
=
True
,
blank
=
True
)),
(
'cablage_effectue'
,
models
.
BooleanField
(
default
=
True
)),
],
options
=
{
'ordering'
:
[
'batiment'
,
'chambre'
],
'permissions'
:
((
'can_view'
,
'Peut visualiser les prises'
),
(
'can_change'
,
'Peut modifier les prises'
),
(
'can_validate'
,
'Peut valider les c
\xe2
blages'
)),
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'PriseAutorise'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'aid'
,
models
.
IntegerField
()),
(
'commentaire'
,
models
.
CharField
(
max_length
=
1024
,
null
=
True
,
blank
=
True
)),
(
'prise'
,
models
.
ForeignKey
(
to
=
'prises.Prise'
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
AlterUniqueTogether
(
name
=
'priseautorise'
,
unique_together
=
set
([(
'prise'
,
'aid'
)]),
),
]
prises/migrations/0002_auto_20170130_2029.py
0 → 100644
View file @
8bbe8afe
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'prises'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'prise'
,
name
=
'has_radius'
,
field
=
models
.
BooleanField
(
default
=
True
),
preserve_default
=
True
,
),
migrations
.
AddField
(
model_name
=
'prise'
,
name
=
'public'
,
field
=
models
.
BooleanField
(
default
=
True
),
preserve_default
=
True
,
),
]
prises/migrations/0003_auto_20170130_2139.py
0 → 100644
View file @
8bbe8afe
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'prises'
,
'0002_auto_20170130_2029'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'prise'
,
name
=
'public'
,
field
=
models
.
BooleanField
(
default
=
False
),
preserve_default
=
True
,
),
]
prises/migrations/__init__.py
0 → 100644
View file @
8bbe8afe
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