Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add django 1.10 compability #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add django 1.10 compability #7

wants to merge 1 commit into from

Conversation

alzearafat
Copy link

Django 1.9 renamed "django.forms.util" to "django.forms.utils". And use of patterns is also deprecated since django 1.8. You can use plain lists now.

@@ -1,6 +1,6 @@
import json

from django.conf.urls import patterns, url
from django.conf.urls import url

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patterns is referenced below, how does this work?

handler: '{% url "admin:quill-file-upload" %}',
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}')
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}'),
// handler: '{% url "admin:quill-file-upload" %}', #Commented this our because trown an error.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a viable solution, without an explanation. Commenting out code isn't a preferred practice either.

@@ -1,6 +1,6 @@
from django import forms
from django.apps import apps
from django.forms.util import flatatt
from django.forms.utils import flatatt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work for older versions of Django.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants