From a5e57c6137bf148ad60ee5fea91417f5ff5247ee Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Fri, 23 Sep 2022 15:50:17 -0400 Subject: [PATCH] Pin DRF to known working version (#595) * Pin DRF to known working version * Fix datetime format string typo --- miqa/core/tasks.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/miqa/core/tasks.py b/miqa/core/tasks.py index 06775446..16b27521 100644 --- a/miqa/core/tasks.py +++ b/miqa/core/tasks.py @@ -222,7 +222,7 @@ def perform_import(import_dict): if last_decision_dict['created']: valid_dt = dateparser.parse(last_decision_dict['created']) if valid_dt: - created = valid_dt.strftime('%Y-%m-%d %H:$M') + created = valid_dt.strftime('%Y-%m-%d %H:%M') if last_decision_dict['location'] and last_decision_dict['location'] != '': slices = [ axis.split('=')[1] diff --git a/setup.py b/setup.py index 10621007..1368c35a 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ 'django-extensions', 'django-filter', 'django-oauth-toolkit', - 'djangorestframework', + 'djangorestframework==3.13.1', # https://github.com/axnsan12/drf-yasg/issues/810 'django-click', 'django-guardian', 'drf-yasg',