Changeset View
Changeset View
Standalone View
Standalone View
swh/web/add_forge_now/views.py
# Copyright (C) 2022 The Software Heritage developers | # Copyright (C) 2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict, List | from typing import Any, Dict, List | ||||
from django.conf import settings | from django.conf import settings | ||||
from django.conf.urls import url | |||||
from django.contrib.auth.decorators import user_passes_test | from django.contrib.auth.decorators import user_passes_test | ||||
from django.core.paginator import Paginator | from django.core.paginator import Paginator | ||||
from django.db.models import Q | from django.db.models import Q | ||||
from django.http.request import HttpRequest | from django.http.request import HttpRequest | ||||
from django.http.response import HttpResponse, JsonResponse | from django.http.response import HttpResponse, JsonResponse | ||||
from django.shortcuts import render | from django.shortcuts import render | ||||
from django.urls import re_path as url | |||||
from swh.web.add_forge_now.models import Request as AddForgeRequest | from swh.web.add_forge_now.models import Request as AddForgeRequest | ||||
from swh.web.add_forge_now.models import RequestHistory | from swh.web.add_forge_now.models import RequestHistory | ||||
from swh.web.api.views.add_forge_now import ( | from swh.web.api.views.add_forge_now import ( | ||||
AddForgeNowRequestPublicSerializer, | AddForgeNowRequestPublicSerializer, | ||||
AddForgeNowRequestSerializer, | AddForgeNowRequestSerializer, | ||||
) | ) | ||||
from swh.web.auth.utils import is_add_forge_now_moderator | from swh.web.auth.utils import is_add_forge_now_moderator | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |