From 9c33a324ef497874abc4cfa4ee022f0b9d015b9f Mon Sep 17 00:00:00 2001 From: Keegan Landrigan Date: Thu, 27 Aug 2020 17:32:43 -0700 Subject: [PATCH 1/2] bump --> 1.3.9 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b943f0075..9c5ac69a2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup(name='dispatch', description='A publishing platform for modern newspapers', - version='1.3.8', + version='1.3.9', url='https://github.com/ubyssey/dispatch', author='Peter Siemens', author_email='peterjsiemens@gmail.com', From 386641331c86abb432d3193af77cd53180c5b727 Mon Sep 17 00:00:00 2001 From: Keegan Landrigan Date: Fri, 28 Aug 2020 01:48:24 +0000 Subject: [PATCH 2/2] remove high coupling request processing logic --- dispatch/modules/content/managers.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/dispatch/modules/content/managers.py b/dispatch/modules/content/managers.py index 4cc16477c..d9133e8ea 100644 --- a/dispatch/modules/content/managers.py +++ b/dispatch/modules/content/managers.py @@ -10,22 +10,4 @@ def get(self, *args, **kwargs): kwargs['head'] = True del kwargs['pk'] - """If the url requested includes the querystring parameters 'version' and 'preview_id', - get the article with the specified version and preview_id. - - Otherwise, get the published version of the article. - """ - - if 'request' in kwargs: - request = kwargs['request'] - version = request.GET.get('version', None) - preview_id = request.GET.get('preview_id', None) - - if (version is not None) and (preview_id is not None): - kwargs['revision_id'] = version - kwargs['preview_id'] = preview_id - del kwargs['is_published'] - - del kwargs['request'] - return super(PublishableManager, self).get(*args, **kwargs)