mirror of https://gitlab.crans.org/bde/nk20
Fix CI
This commit is contained in:
parent
841d56d5b3
commit
213e5a8369
|
@ -6,10 +6,11 @@ from django.urls import path
|
|||
from . import views
|
||||
|
||||
app_name = 'activity'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.ActivityListView.as_view(),name='activity_list'),
|
||||
path('<int:pk>/', views.ActivityDetailView.as_view(),name='activity_detail'),
|
||||
path('<int:pk>/entry/', views.ActivityEntryView.as_view(),name='activity_entry'),
|
||||
path('<int:pk>/update/', views.ActivityUpdateView.as_view(),name='activity_update'),
|
||||
path('new/', views.ActivityCreateView.as_view(),name='activity_create'),
|
||||
path('', views.ActivityListView.as_view(), name='activity_list'),
|
||||
path('<int:pk>/', views.ActivityDetailView.as_view(), name='activity_detail'),
|
||||
path('<int:pk>/entry/', views.ActivityEntryView.as_view(), name='activity_entry'),
|
||||
path('<int:pk>/update/', views.ActivityUpdateView.as_view(), name='activity_update'),
|
||||
path('new/', views.ActivityCreateView.as_view(), name='activity_create'),
|
||||
]
|
||||
|
|
|
@ -1,33 +1,31 @@
|
|||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from dal import autocomplete
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.db.models import Q
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.views.generic import CreateView, DetailView,\
|
||||
ListView, UpdateView, TemplateView
|
||||
from django.views.generic import CreateView, DetailView, UpdateView, TemplateView
|
||||
from django_tables2.views import SingleTableView
|
||||
|
||||
from .models import Activity, ActivityType
|
||||
from .models import Activity
|
||||
|
||||
|
||||
class ActivityCreateView(CreateView):
|
||||
model = Activity
|
||||
template_name = 'activity_create.html'
|
||||
|
||||
|
||||
class ActivityListView(SingleTableView):
|
||||
model = Activity
|
||||
template_name = 'activity_list.html'
|
||||
|
||||
|
||||
class ActivityDetailView(DetailView):
|
||||
model = Activity
|
||||
template_name = 'activty_detail.html'
|
||||
|
||||
|
||||
class ActivityUpdateView(UpdateView):
|
||||
model = Activity
|
||||
template_name = 'activity_update.html'
|
||||
|
||||
|
||||
class ActivityEntryView(TemplateView):
|
||||
pass
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ urlpatterns = [
|
|||
path('i18n/', include('django.conf.urls.i18n')),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('accounts/', include('member.urls')),
|
||||
path('accounts/login/', CustomLoginView.as_view()),
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
path('api/', include('api.urls')),
|
||||
|
|
Loading…
Reference in New Issue