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
65dedc07
Commit
65dedc07
authored
Oct 28, 2017
by
Gabriel Detraz
Committed by
root
Oct 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug migration
parent
8ed051fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cotisations/migrations/0026_auto_20171028_0126.py
cotisations/migrations/0026_auto_20171028_0126.py
+2
-2
No files found.
cotisations/migrations/0026_auto_20171028_0126.py
View file @
65dedc07
...
...
@@ -10,7 +10,7 @@ def create_type(apps, schema_editor):
Vente
=
apps
.
get_model
(
'cotisations'
,
'Vente'
)
Article
=
apps
.
get_model
(
'cotisations'
,
'Article'
)
db_alias
=
schema_editor
.
connection
.
alias
articles
=
Article
s
.
objects
.
using
(
db_alias
).
all
()
articles
=
Article
.
objects
.
using
(
db_alias
).
all
()
ventes
=
Vente
.
objects
.
using
(
db_alias
).
all
()
cotisations
=
Cotisation
.
objects
.
using
(
db_alias
).
all
()
for
article
in
articles
:
...
...
@@ -54,7 +54,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'article'
,
name
=
'type_cotisation'
,
field
=
models
.
CharField
(
choices
=
[(
'Connexion'
,
'Connexion'
),
(
'Adhesion'
,
'Adhesion'
),
(
'All'
,
'All'
)],
default
=
None
,
max_length
=
255
,
null
=
True
),
field
=
models
.
CharField
(
blank
=
True
,
choices
=
[(
'Connexion'
,
'Connexion'
),
(
'Adhesion'
,
'Adhesion'
),
(
'All'
,
'All'
)],
default
=
None
,
max_length
=
255
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'cotisation'
,
...
...
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