Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SMASCH
scheduling-system
Merge requests
!37
Custom calendar colors for appointment location and appointment status
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Custom calendar colors for appointment location and appointment status
89-calendar-colors
into
master
Overview
0
Commits
5
Pipelines
2
Changes
1
Merged
Piotr Gawron
requested to merge
89-calendar-colors
into
master
7 years ago
Overview
0
Commits
5
Pipelines
2
Changes
1
Expand
Closes
#89 (closed)
0
0
Merge request reports
Viewing commit
3b440733
Prev
Next
Show latest version
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3b440733
db migration including color change for flying team
· 3b440733
Piotr Gawron
authored
7 years ago
smash/web/migrations/0028_location_color_of_flying_team.py
0 → 100644
+
24
−
0
Options
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-04 09:43
from
__future__
import
unicode_literals
from
django.db
import
migrations
def
configuration_item_color_fields
(
apps
,
schema_editor
):
# We can't import the Location model directly as it may be a newer
# version than this migration expects. We use the historical version.
Location
=
apps
.
get_model
(
"
web
"
,
"
Location
"
)
locations
=
Location
.
objects
.
filter
(
name
=
"
Flying Team
"
)
for
location
in
locations
:
location
.
color
=
"
#FF8000
"
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
web
'
,
'
0027_auto_20170404_1505
'
),
]
operations
=
[
migrations
.
RunPython
(
configuration_item_color_fields
),
]
Loading