blob: 83920e307e62491f1c3f3d4538f0b9d0163cc94d [file] [log] [blame]
Matteo Scandolo40ea73b2019-04-17 13:40:41 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# -*- coding: utf-8 -*-
16# Generated by Django 1.11.11 on 2019-03-14 22:35
17from __future__ import unicode_literals
18
19import core.models.xosbase_header
20from django.db import migrations, models
21import django.db.models.deletion
22import django.utils.timezone
23
24
25class Migration(migrations.Migration):
26
27 def forwards(apps, schema_editor):
28 # Capitalize the default bandwidth profile
29 bp = apps.get_model('rcord', 'BandwidthProfile')
30 default = bp.objects.get(name="default")
31 default.name = "Default"
32 default.save()
33
34 dependencies = [
35 ('rcord', '0007_auto_20190409_1904'),
36 ]
37
38 operations = [
39 migrations.RunPython(forwards),
40 ]