Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oser-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hamza Touizrat
oser-backend
Commits
6c158538
Commit
6c158538
authored
Apr 11, 2022
by
Hamzux
Browse files
Options
Downloads
Patches
Plain Diff
fix trig
parent
5a82e8d8
No related branches found
No related tags found
5 merge requests
!57
Hamza
,
!56
Hamza
,
!58
Hamza
,
!55
Hamza
,
!54
Add field "en attentes" in participations options
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
visits/migrations/0003_fix_db_trouble.py
+18
-0
18 additions, 0 deletions
visits/migrations/0003_fix_db_trouble.py
visits/migrations/0004_auto_20211225_1242.py
+1
-1
1 addition, 1 deletion
visits/migrations/0004_auto_20211225_1242.py
with
19 additions
and
1 deletion
visits/migrations/0003_fix_db_trouble.py
0 → 100644
+
18
−
0
View file @
6c158538
from
django.db
import
migrations
from
..models
import
Participation
def
postgres_migration_prep
(
apps
,
schema_editor
):
participations
=
Participation
.
objects
.
filter
(
accepted
=
True
)
for
participation
in
participations
:
participation
.
accepted
=
1
class
Migration
(
migrations
.
Migration
):
dependencies
=
[(
"
visits
"
,
"
0002_visit_context_sheet
"
)]
operations
=
[
migrations
.
RunPython
(
postgres_migration_prep
,
migrations
.
RunPython
.
noop
)
]
This diff is collapsed.
Click to expand it.
visits/migrations/000
3
_auto_20211225_1242.py
→
visits/migrations/000
4
_auto_20211225_1242.py
+
1
−
1
View file @
6c158538
...
...
@@ -6,7 +6,7 @@ from django.db import migrations, models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
visits
'
,
'
000
2_visit_context_sheet
'
),
(
'
visits
'
,
'
000
3_fix_db_trouble
'
),
]
operations
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment