From 1f01f7470f5b1a991250ea9a10dbcdb5f1cc7cac Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Mon, 17 Jan 2022 17:50:16 -0400
Subject: [PATCH] Upgrade frapp app to Django 3.2

---
 frapp/urls.py  | 4 ++--
 frapp/views.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/frapp/urls.py b/frapp/urls.py
index 96c24ba6..2ebd92e7 100644
--- a/frapp/urls.py
+++ b/frapp/urls.py
@@ -17,10 +17,10 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from django.conf.urls import url
+from django.urls import path
 
 from .views import json_frapp
 
 urlpatterns = [
-    url(r'^frapp/$', json_frapp),
+    path('frapp/', json_frapp),
 ]
diff --git a/frapp/views.py b/frapp/views.py
index 178dc494..bc45cbf4 100644
--- a/frapp/views.py
+++ b/frapp/views.py
@@ -24,7 +24,7 @@ from django.contrib.sites.shortcuts import get_current_site
 from django.core.exceptions import ObjectDoesNotExist
 from django.db.models import Q
 from django.http import HttpResponse
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 from program.models import Note, Category, TimeSlot, Schedule
 
-- 
GitLab