Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
f22df529
Commit
f22df529
authored
Jul 01, 2015
by
Arnaud Fabre
Browse files
votes migrations
parent
89c72d11
Changes
5
Hide whitespace changes
Inline
Side-by-side
votes/migrations/0001_initial.py
View file @
f22df529
...
...
@@ -14,11 +14,13 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'MemopolDossier'
,
fields
=
[
(
'dossier_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'representatives_votes.Dossier'
)),
(
'name'
,
models
.
CharField
(
max_length
=
1000
)),
(
'description'
,
models
.
TextField
(
blank
=
True
)),
(
'dossier'
,
models
.
OneToOneField
(
parent_link
=
True
,
related_name
=
'extra'
,
primary_key
=
True
,
serialize
=
False
,
to
=
'representatives_votes.Dossier'
)),
(
'dossier_reference'
,
models
.
CharField
(
max_length
=
200
)),
(
'name'
,
models
.
CharField
(
default
=
b
''
,
max_length
=
1000
,
blank
=
True
)),
(
'description'
,
models
.
TextField
(
default
=
b
''
,
blank
=
True
)),
],
options
=
{
'abstract'
:
False
,
},
bases
=
(
'representatives_votes.dossier'
,),
),
...
...
@@ -32,9 +34,6 @@ class Migration(migrations.Migration):
(
'weight'
,
models
.
IntegerField
(
default
=
0
)),
(
'proposal'
,
models
.
OneToOneField
(
related_name
=
'recommendation'
,
to
=
'representatives_votes.Proposal'
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'MemopolVote'
,
...
...
votes/migrations/0002_auto_20150616_1516.py
deleted
100644 → 0
View file @
89c72d11
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
import
core.fields
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'representatives_votes'
,
'0002_auto_20150616_1249'
),
(
'votes'
,
'0001_initial'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'memopoldossier'
,
name
=
'dossier_ptr'
,
),
migrations
.
AddField
(
model_name
=
'memopoldossier'
,
name
=
'dossier'
,
field
=
core
.
fields
.
AutoOneToOneField
(
primary_key
=
True
,
default
=
0
,
serialize
=
False
,
to
=
'representatives_votes.Dossier'
),
preserve_default
=
False
,
),
]
votes/migrations/0003_auto_20150616_1523.py
deleted
100644 → 0
View file @
89c72d11
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'votes'
,
'0002_auto_20150616_1516'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'memopoldossier'
,
name
=
'description'
,
field
=
models
.
TextField
(
default
=
b
''
,
blank
=
True
),
preserve_default
=
True
,
),
migrations
.
AlterField
(
model_name
=
'memopoldossier'
,
name
=
'name'
,
field
=
models
.
CharField
(
default
=
b
''
,
max_length
=
1000
,
blank
=
True
),
preserve_default
=
True
,
),
]
votes/migrations/0004_auto_20150616_1527.py
deleted
100644 → 0
View file @
89c72d11
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
import
core.fields
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'votes'
,
'0003_auto_20150616_1523'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'memopoldossier'
,
name
=
'dossier'
,
field
=
core
.
fields
.
AutoOneToOneField
(
parent_link
=
True
,
related_name
=
'extra'
,
primary_key
=
True
,
serialize
=
False
,
to
=
'representatives_votes.Dossier'
),
preserve_default
=
True
,
),
]
votes/migrations/0005_auto_20150617_1243.py
deleted
100644 → 0
View file @
89c72d11
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'votes'
,
'0004_auto_20150616_1527'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'memopoldossier'
,
name
=
'dossier_reference'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
200
),
preserve_default
=
False
,
),
migrations
.
AlterField
(
model_name
=
'memopoldossier'
,
name
=
'dossier'
,
field
=
models
.
OneToOneField
(
parent_link
=
True
,
related_name
=
'extra'
,
primary_key
=
True
,
serialize
=
False
,
to
=
'representatives_votes.Dossier'
),
preserve_default
=
True
,
),
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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