Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOLA-453: changing default naming for workflow levels #1182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions workflow/migrations/0041_auto_20190409_0632.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-04-09 13:32
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('workflow', '0040_merge_20190312_0047'),
]

operations = [
migrations.AlterField(
model_name='organization',
name='level_2_label',
field=models.CharField(blank=True, default='Activity', max_length=255, verbose_name='Project/Program Organization Level 2 label'),
),
migrations.AlterField(
model_name='organization',
name='level_3_label',
field=models.CharField(blank=True, default='Task', max_length=255, verbose_name='Project/Program Organization Level 3 label'),
),
migrations.AlterField(
model_name='organization',
name='level_4_label',
field=models.CharField(blank=True, default='Component', max_length=255, verbose_name='Project/Program Organization Level 4 label'),
),
]
6 changes: 3 additions & 3 deletions workflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ class Organization(models.Model):
organization_url = models.CharField(blank=True, null=True, max_length=255)
sector = models.ManyToManyField(Sector, blank=True, related_name="org_sector")
level_1_label = models.CharField("Project/Program Organization Level 1 label", default="Program", max_length=255, blank=True)
level_2_label = models.CharField("Project/Program Organization Level 2 label", default="Project", max_length=255, blank=True)
level_3_label = models.CharField("Project/Program Organization Level 3 label", default="Component", max_length=255, blank=True)
level_4_label = models.CharField("Project/Program Organization Level 4 label", default="Activity", max_length=255, blank=True)
level_2_label = models.CharField("Project/Program Organization Level 2 label", default="Activity", max_length=255, blank=True)
level_3_label = models.CharField("Project/Program Organization Level 3 label", default="Task", max_length=255, blank=True)
level_4_label = models.CharField("Project/Program Organization Level 4 label", default="Component", max_length=255, blank=True)
create_date = models.DateTimeField(null=True, blank=True)
edit_date = models.DateTimeField(null=True, blank=True)
chargebee_subscription_id = models.CharField(blank=True, null=True, max_length=50)
Expand Down