-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
593 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
bluebottle/activities/migrations/0060_activity_office_restriction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.24 on 2022-09-08 12:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('activities', '0059_auto_20220804_1214'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='activity', | ||
name='office_restriction', | ||
field=models.CharField(choices=[('office', 'Only people from the same office are allowed to participate'), ('office_subregion', 'Only people within the same group are allowed to participate'), ('office_region', 'Only people within the same region are allowed to participate'), ('all', 'Everybody is allowed to participate')], default='all', max_length=100, verbose_name='Office restriction'), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
bluebottle/activities/migrations/0060_auto_20220831_1507.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 2.2.24 on 2022-08-31 13:07 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def migrate_office_to_activities(apps, schema_editor): | ||
Initiative = apps.get_model('initiatives', 'Initiative') | ||
for initiative in Initiative.objects.filter(location__isnull=False).all(): | ||
initiative.activities.update(office_location=initiative.location) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('activities', '0059_auto_20220804_1214'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython( | ||
migrate_office_to_activities, | ||
migrations.RunPython.noop | ||
) | ||
] | ||
|
14 changes: 14 additions & 0 deletions
14
bluebottle/activities/migrations/0061_merge_20220909_1019.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 2.2.24 on 2022-09-09 08:19 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('activities', '0060_auto_20220831_1507'), | ||
('activities', '0060_activity_office_restriction'), | ||
] | ||
|
||
operations = [ | ||
] |
Oops, something went wrong.