Skip to content

Commit 9acca47

Browse files
Merge pull request #1409 from IFRCGo/hotfix/field-report-sending
Hotfix/field report sending
2 parents 81cb10d + a50d264 commit 9acca47

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

api/drf_views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,9 @@ def map_many_to_many_relations(self, data):
829829
if 'start_date' in data:
830830
data['start_date'] = datetime.strptime(data['start_date'], '%Y-%m-%dT%H:%M:%S.%f%z')\
831831
.replace(tzinfo=utc)
832+
if 'sit_fields_date' in data:
833+
data['sit_fields_date'] = datetime.strptime(data['sit_fields_date'], '%Y-%m-%dT%H:%M:%S.%f%z')\
834+
.replace(tzinfo=utc)
832835
return data, locations, meta, partners
833836

834837
def save_locations(self, instance, locations, is_update=False):

main/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from .celery import app as celery_app
44

55
__all__ = ['celery_app']
6-
__version__ = '1.1.436'
6+
__version__ = '1.1.437'

0 commit comments

Comments
 (0)