Merge pull request #183 from bashu/patch-1

let there be (correct) colour
master
Brandon Taylor 2018-02-16 16:19:30 -05:00 committed by GitHub
commit f2df915a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 23 deletions

View File

@ -460,7 +460,7 @@ plugin_pool.register_plugin(CMSCarouselPlugin)
The contents of `sortable-stacked-inline-change-form.html` at a minimum need to extend
the extrahead block with:
```html
```html+django
{% extends "admin/cms/page/plugin_change_form.html" %}
{% load static from staticfiles %}
@ -477,39 +477,39 @@ the extrahead block with:
Sorting within Django-CMS is really only feasible for inline models of a plugin as Django-CMS already includes sorting for plugin instances. For tabular inlines, just substitute:
```html
```html+django
<script src="{% static 'adminsortable/js/admin.sortable.stacked.inlines.js' %}"></script>
```
with:
```html
```html+django
<script src="{% static 'adminsortable/js/admin.sortable.tabular.inlines.js' %}"></script>
```
### Notes
From ``django-cms 3.x`` the path of change_form.html has changed. Replace the follwing line:
```html
```html+django
{% extends "admin/cms/page/plugin_change_form.html" %}
```
with
```html
```html+django
{% extends "admin/cms/page/plugin/change_form.html" %}
```
From ``django-admin-sortable 2.0.13`` the ``jquery.django-csrf.js`` was removed and you have to include the snippet-template.
Change the following line:
```html
```html+django
<script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script>
```
to
```html
```html+django
{% include 'adminsortable/csrf/jquery.django-csrf.html' with csrf_cookie_name='csrftoken' %}
```