Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
3c611393
Verified
Commit
3c611393
authored
1 year ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
fix: migrate empty tags as []
parent
ed04841e
No related branches found
No related tags found
No related merge requests found
Pipeline
#6631
passed
1 year ago
Stage: build
Stage: deploy
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/migrations/0073_alter_note_tags.py
+5
-0
5 additions, 0 deletions
program/migrations/0073_alter_note_tags.py
with
5 additions
and
0 deletions
program/migrations/0073_alter_note_tags.py
+
5
−
0
View file @
3c611393
...
...
@@ -12,6 +12,11 @@ def split_old_tags(apps, _):
note
.
save
()
for
note
in
Note
.
objects
.
filter
(
old_tags
=
""
):
note
.
tags
=
json
.
dumps
([])
note
.
save
()
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
...
...
This diff is collapsed.
Click to expand it.
Ernesto Rico Schmidt
@eigenwijsje
mentioned in commit
273bff97
·
1 year ago
mentioned in commit
273bff97
mentioned in commit 273bff97e6d724d8136b6ab836606e2a62f8544c
Toggle commit list
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