X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b95b09260db87f6665bfcef3fb4f7c19f8acb666..e68c50016c7c562f4dec7783e94ef10fca01ce34:/src/dictionary/urls.py?ds=inline diff --git a/src/dictionary/urls.py b/src/dictionary/urls.py old mode 100755 new mode 100644 index a5582a17a..541344576 --- a/src/dictionary/urls.py +++ b/src/dictionary/urls.py @@ -1,10 +1,10 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # -from django.conf.urls import url +from django.contrib.auth.decorators import login_required +from django.urls import path from dictionary.views import NotesView urlpatterns = [ - url(r'^$', NotesView.as_view(), name='dictionary_notes'), + path('', login_required(NotesView.as_view()), name='dictionary_notes'), ]