From 4deca86bf0233763ee86805562e9a7c953ce34b9 Mon Sep 17 00:00:00 2001 From: mlissner Date: Wed, 18 Dec 2024 11:11:28 -0800 Subject: [PATCH] feat(api): Block users --- cl/search/admin.py | 1 - cl/settings/third_party/rest_framework.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cl/search/admin.py b/cl/search/admin.py index 0c40e787ac..eebdef50ad 100644 --- a/cl/search/admin.py +++ b/cl/search/admin.py @@ -1,7 +1,6 @@ from admin_cursor_paginator import CursorPaginatorAdmin from django.contrib import admin from django.db.models import QuerySet -from django.forms import ModelForm from django.http import HttpRequest from cl.alerts.admin import DocketAlertInline diff --git a/cl/settings/third_party/rest_framework.py b/cl/settings/third_party/rest_framework.py index 762a412b21..1463321f79 100644 --- a/cl/settings/third_party/rest_framework.py +++ b/cl/settings/third_party/rest_framework.py @@ -29,6 +29,11 @@ "OVERRIDE_THROTTLE_RATES": { # Throttling down. # Multiple accounts + "api_account_1": "1/hour", + "api_account_2": "1/hour", + "api_account_3": "1/hour", + "api_account_4": "1/hour", + "api_account_5": "1/hour", "JamesBond": "1/hour", "JackSparrow": "1/hour", "PeterPan": "1/hour",