diff --git a/ifbcat_api/admin.py b/ifbcat_api/admin.py
index eff5aa0..e81f32c 100644
--- a/ifbcat_api/admin.py
+++ b/ifbcat_api/admin.py
@@ -21,7 +21,7 @@
from django.utils import dateformat, timezone
from django.utils.html import format_html
from django.utils.safestring import mark_safe
-from django.utils.translation import ugettext, ngettext
+from django.utils.translation import gettext, ngettext
from django_better_admin_arrayfield.admin.mixins import DynamicArrayMixin
from rest_framework.authtoken.models import Token
@@ -571,7 +571,7 @@ def logo(self, obj):
return format_html('
')
return format_html('-')
- logo.short_description = format_html("" + ugettext("Logo") + "")
+ logo.short_description = format_html("" + gettext("Logo") + "")
def get_queryset(self, request):
return Event.annotate_is_tess_publishing(super().get_queryset(request)).annotate(
@@ -876,7 +876,7 @@ def update_information_from_ebi_ols(self, request, queryset):
def uri_browser(self, obj):
return format_html(f'{obj.uri}')
- uri_browser.short_description = format_html("" + ugettext("URI") + "")
+ uri_browser.short_description = format_html("" + gettext("URI") + "")
@admin.register(models.EventCost)
@@ -1335,7 +1335,7 @@ def logo(self, obj):
return format_html('')
return format_html('-')
- logo.short_description = format_html("" + ugettext("Image") + "")
+ logo.short_description = format_html("" + gettext("Image") + "")
class AbstractControlledVocabularyAdmin(
@@ -1592,7 +1592,7 @@ def get_readonly_fields(self, request, obj=None):
# Unregister the original Token admin.
-admin.site.unregister(Token)
+# admin.site.unregister(Token)
@admin.register(Token)
diff --git a/ifbcat_vanilla_front/urls.py b/ifbcat_vanilla_front/urls.py
index 66d5048..f670d20 100644
--- a/ifbcat_vanilla_front/urls.py
+++ b/ifbcat_vanilla_front/urls.py
@@ -1,14 +1,14 @@
-from django.conf.urls import url
+from django.urls import path, re_path
from ifbcat_vanilla_front import views
app_name = 'vfront'
urlpatterns = [
- url(r'^$', views.index, name='home'),
- url(r'^platform/$', views.TeamListView.as_view(), name='team-list'),
- url(r'^platform/(?P[-\w ]+)/$', views.TeamDetailView.as_view(), name='team-detail'),
- url(r'^event/$', views.EventListView.as_view(), name='event-list'),
- url(r'^event/(?P\d+)/$', views.EventDetailView.as_view(), name='event-detail'),
- url(r'^training/$', views.TrainingListView.as_view(), name='training-list'),
- url(r'^training/(?P\d+)/$', views.TrainingDetailView.as_view(), name='training-detail'),
+ path('', views.index, name='home'),
+ path('platform/', views.TeamListView.as_view(), name='team-list'),
+ re_path(r'^platform/(?P[-\w ]+)/$', views.TeamDetailView.as_view(), name='team-detail'),
+ path('event/', views.EventListView.as_view(), name='event-list'),
+ path('event//', views.EventDetailView.as_view(), name='event-detail'),
+ path('training/', views.TrainingListView.as_view(), name='training-list'),
+ path('training//', views.TrainingDetailView.as_view(), name='training-detail'),
]
diff --git a/requirements.txt b/requirements.txt
index e29cab4..55f979b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
biopython
-Django~=3.2.12
+Django~=4.2.14
djangorestframework==3.15.2
python-decouple
psycopg2