From abcd38fd4eb1e8863e56bf4f4be48c3c508722b1 Mon Sep 17 00:00:00 2001
From: Peter Dermott
Date: Tue, 14 Jan 2020 10:16:20 +0000
Subject: [PATCH 01/13] Remove unneeded import
---
grappelli_safe/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/grappelli_safe/__init__.py b/grappelli_safe/__init__.py
index 4cc4fea..db7986c 100644
--- a/grappelli_safe/__init__.py
+++ b/grappelli_safe/__init__.py
@@ -1,2 +1 @@
-from __future__ import unicode_literals
-VERSION = '2.0'
\ No newline at end of file
+VERSION = '2.0'
From 41a4705b105ce539e4189b250abd66d6ff04e28b Mon Sep 17 00:00:00 2001
From: Peter Dermott
Date: Tue, 14 Jan 2020 10:16:49 +0000
Subject: [PATCH 02/13] Fix url
---
grappelli_safe/static/grappelli/js/admin/Inline.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/grappelli_safe/static/grappelli/js/admin/Inline.js b/grappelli_safe/static/grappelli/js/admin/Inline.js
index af60d7e..c273c6a 100644
--- a/grappelli_safe/static/grappelli/js/admin/Inline.js
+++ b/grappelli_safe/static/grappelli/js/admin/Inline.js
@@ -69,6 +69,7 @@ jQuery(function($) {
}
if ($(this).attr('href')) {
$(this).attr('href', $(this).attr('href').replace(/-\d+-/g, "-" + parseInt(items - 1) + "-"));
+ $(this).attr('href', $(this).attr('href').replace(/__prefix__/g, "" + parseInt(items - 1) ));
}
});
/// remove calendars and clocks, re-init
From 5aa32d3dd53737c66e6ddf3fcf90afa69403328f Mon Sep 17 00:00:00 2001
From: Peter Dermott
Date: Tue, 14 Jan 2020 10:17:24 +0000
Subject: [PATCH 03/13] Move jQuery UI out to base admin template (fixes broken
inlines)
---
grappelli_safe/templates/admin/base.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/grappelli_safe/templates/admin/base.html b/grappelli_safe/templates/admin/base.html
index 97b5c94..ec17fa8 100644
--- a/grappelli_safe/templates/admin/base.html
+++ b/grappelli_safe/templates/admin/base.html
@@ -17,6 +17,8 @@
{% block javascripts %}
+
+