divio / aldryn-search

Haystack 2.0 search index for django CMS
Other
48 stars 77 forks source link

Fix deprecation warning for Django 1.10 #64

Closed tom-mi closed 7 years ago

tom-mi commented 8 years ago

This removes the following warning:

.../aldryn_search/cms_app.py:17: RemovedInDjango110Warning: 
django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url('^$', AldrynSearchView.as_view(), name='aldryn-search'),
czpython commented 8 years ago

Hi there, Thanks for the contribution. Please use a conditional as this would break on django 1.4 and django 1.5 which are still supported by this app.

czpython commented 7 years ago

Done in 1a57510e6b445eac4073671914b19fa5638a78fe