update for django 1.11
authorFrédéric Péters <fpeters@0d.be>
Sun, 27 Jan 2019 13:23:12 +0000 (14:23 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sun, 27 Jan 2019 13:23:12 +0000 (14:23 +0100)
gallery/urls.py

index 9737a15..5fcfa05 100644 (file)
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from django.conf.urls import patterns, url
+from django.conf.urls import url
 
 from . import views
 
-manager_urlpatterns = patterns('',
+manager_urlpatterns = [
         url('^gallery/(?P<gallery_pk>\w+)/images/add/$', views.image_add,
             name='combo-gallery-image-add'),
         url('^gallery/(?P<gallery_pk>\w+)/order$', views.image_order,
@@ -27,4 +27,4 @@ manager_urlpatterns = patterns('',
             name='combo-gallery-image-edit'),
         url('^gallery/(?P<gallery_pk>\w+)/images/(?P<pk>\w+)/delete$', views.image_delete,
             name='combo-gallery-image-delete'),
-)
+]