Skip to content

Commit ab8586c

Browse files
author
Danielle
committed
Merge urgent changes to master branch into WIP dev branch (easier merging later)
2 parents 51f7114 + 7e6eb6b commit ab8586c

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
- Upcoming additions of other language forms to CDI
99
- Addition of English-language short forms
1010

11+
## [1.1.2] - 2018-06-21
12+
### Added
13+
- Added translations for Spanish-language CDI instructions
14+
15+
### Changed
16+
- Greater tolerance of non-ascii characters in parent-reported text
17+
18+
1119
## [1.1.1] - 2018-05-11
1220
### Changed
1321
- Marked CDI form instructions for Spanish-language translations

webcdi/cdi_forms/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class requests_log(models.Model):
1515
request_type = models.CharField(max_length=4)
1616
timestamp = models.DateTimeField(auto_now = True)
1717

18-
1918
# Method for ensuring that a value is positive
2019
def validate_g_zero(value):
2120
if value <= 0:

webcdi/cdi_forms/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def prefilled_cdi_data(administration_instance):
303303
section['type'] = item_type['type']
304304

305305
x = cdi_items(group_objects, section['type'], prefilled_data, item_type['id'])
306+
306307
section['objects'] = x
307308
if administration_instance.study.show_feedback: raw_objects.extend(x)
308309
if any(['*' in x['definition'] for x in section['objects']]):

webcdi/researcher_UI/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def import_data(request, study_name):
783783
PROJECT_ROOT = settings.BASE_DIR
784784
instruments_json = json.load(open(os.path.realpath(PROJECT_ROOT + '/static/json/instruments.json')))
785785
header_file_path = filter(lambda x: x['language'] == study_obj.instrument.language and x['form'] == study_obj.instrument.form, instruments_json)[0]['fillable_headers']
786-
pdf_header_df = pd.read_csv(header_file_path)
786+
pdf_header_df = pd.read_csv(open(os.path.realpath(PROJECT_ROOT + '/' +header_file_path)))
787787

788788
default_dict = {
789789
'annual_income': u'Prefer not to disclose', 'birth_order': 0, 'birth_weight_kg': None,

webcdi/supplementtut/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from django.contrib.auth import login, authenticate
2222
from django.contrib.sites.models import Site
2323

24+
2425
def save_researcher_profile_receiver(sender, user, profile, request, **kwargs):
2526
researcher_profile, created = researcher.objects.get_or_create(user = profile.user)
2627
profile.user.first_name = profile.supplement.first_name

0 commit comments

Comments
 (0)