-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped CB version and pinned to 1.3.6.
- Loading branch information
Showing
4 changed files
with
86 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.23 on 2019-08-23 10:44 | ||
from __future__ import unicode_literals | ||
|
||
import django.core.files.storage | ||
from django.db import migrations, models | ||
import plugins.consortial_billing.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('consortial_billing', '0036_banding_size'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='poll', | ||
name='file', | ||
field=models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/Users/ajrbyers/janeway/src/media'), upload_to=plugins.consortial_billing.models.file_upload_path), | ||
), | ||
] |
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,47 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.23 on 2019-08-23 10:44 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
from plugins.consortial_billing import plugin_settings | ||
|
||
|
||
def upgrade_plugin_version(apps, schema_editor): | ||
Plugin = apps.get_model('utils', 'Plugin') | ||
|
||
try: | ||
_plugin = Plugin.objects.get( | ||
name=plugin_settings.SHORT_NAME, | ||
) | ||
_plugin.version = '1.1' | ||
_plugin.save() | ||
except BaseException: | ||
pass | ||
|
||
|
||
def downgrade_plugin_version(apps, schema_editor): | ||
Plugin = apps.get_model('utils', 'Plugin') | ||
|
||
try: | ||
_plugin = Plugin.objects.get( | ||
name=plugin_settings.SHORT_NAME, | ||
) | ||
_plugin.version = '1.0' | ||
_plugin.save() | ||
except Plugin.object.DoesNotExist: | ||
pass | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('consortial_billing', '0037_auto_20190823_1144'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython( | ||
upgrade_plugin_version, | ||
reverse_code=downgrade_plugin_version, | ||
) | ||
] |
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