AttributeError: объект «функция» не имеет атрибута «as_view»
Здесь что-то происходит с ResultListView:
Код: Выделить всё
from django.urls import path
from .views import ResultListView
urlpatterns = [
path('meetings/', ResultListView.as_view(), name='meetings'),
]
Код: Выделить всё
@login_required
class ResultListView(ListView):
template_name = ...
def get_queryset(self):
return Result.objects.filter(rider__user=self.request.user)
Подробнее здесь: https://stackoverflow.com/questions/608 ... -in-django