-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/2.0.1: bump version bumo version fixes PDIndicator decimal bump version
- Loading branch information
Showing
11 changed files
with
66 additions
and
14 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 2.0.0rc22 | ||
current_version = 2.0.1 | ||
commit = False | ||
tag = False | ||
allow_dirty = True | ||
|
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
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
23 changes: 23 additions & 0 deletions
23
src/etools_datamart/apps/data/migrations/0089_auto_20190901_0643.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,23 @@ | ||
# Generated by Django 2.2.4 on 2019-09-01 06:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data', '0088_auto_20190828_2216'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='pdindicator', | ||
name='baseline_denominator', | ||
field=models.DecimalField(blank=True, decimal_places=3, max_digits=20, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='pdindicator', | ||
name='baseline_numerator', | ||
field=models.DecimalField(blank=True, decimal_places=3, max_digits=20, null=True), | ||
), | ||
] |
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
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,29 @@ | ||
import logging | ||
|
||
from crashlog.middleware import process_exception | ||
from rest_framework_yaml.renderers import YAMLRenderer as BaseRenderer | ||
|
||
from unicef_rest_framework.renderers.mixin import ContentDispositionMixin | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def labelize(v): | ||
return v.replace("_", " ").title() | ||
|
||
|
||
class YAMLRenderer(ContentDispositionMixin, BaseRenderer): | ||
format = 'yaml' | ||
|
||
def render(self, data, accepted_media_type=None, renderer_context=None): | ||
response = renderer_context['response'] | ||
self.process_response(renderer_context) | ||
if response.status_code != 200: | ||
return '' | ||
try: | ||
return super().render(data, accepted_media_type, renderer_context) | ||
|
||
except Exception as e: | ||
process_exception(e) | ||
logger.exception(e) | ||
raise Exception(f'Error processing request {e}') from e |
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