1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/peeringdb_server/migrations/0088_alter_environmentsetting_setting.py
Stefan Pratter 5eb925e319 Support 202301 (#1329)
* fix next redirect when using U2F 2FA auth (#1191)

* Added self identifier to API

* fix migrations hierarchy after merging in previous support branch

* campus object

Co-authored-by: Stefan Pratter <stefan@20c.com>

* fix out of bound error message
add city / country to campus view

* fix tests

* relock poetry

* linting

* linting

* fix docs regen

* regen docs

* linting

* refactor self entity view to support carrier and campus object types and also make it easier to support additional object types in the future

* remove debug message

---------

Co-authored-by: Gajanan Patil <dipaksavaliya.python@gmail.com>
2023-02-15 07:55:01 +00:00

113 lines
4.8 KiB
Python

# Generated by Django 3.2.13 on 2022-05-31 09:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("peeringdb_server", "0087_oauth_constraints"),
]
operations = [
migrations.AlterField(
model_name="environmentsetting",
name="setting",
field=models.CharField(
choices=[
("API_THROTTLE_RATE_ANON", "API: Anonymous API throttle rate"),
("API_THROTTLE_RATE_USER", "API: Authenticated API throttle rate"),
(
"API_THROTTLE_MELISSA_RATE_ADMIN",
"API: Melissa request throttle rate for admin users",
),
(
"API_THROTTLE_MELISSA_ENABLED_ADMIN",
"API: Melissa request throttle enabled for admin users",
),
(
"API_THROTTLE_MELISSA_RATE_USER",
"API: Melissa request throttle rate for users",
),
(
"API_THROTTLE_MELISSA_ENABLED_USER",
"API: Melissa request throttle enabled for users",
),
(
"API_THROTTLE_MELISSA_RATE_ORG",
"API: Melissa request throttle rate for organizations",
),
(
"API_THROTTLE_MELISSA_ENABLED_ORG",
"API: Melissa request throttle enabled for organizations",
),
(
"API_THROTTLE_MELISSA_RATE_ANON",
"API: Melissa request throttle rate for anonymous requests (ips)",
),
(
"API_THROTTLE_MELISSA_ENABLED_ANON",
"API: Melissa request throttle enabled for anonymous requests (ips)",
),
(
"API_THROTTLE_RESPONSE_SIZE_THRESHOLD_CIDR",
"API: Response size throttle size threshold for ip blocks (bytes)",
),
(
"API_THROTTLE_RESPONSE_SIZE_RATE_CIDR",
"API: Response size throttle rate for ip blocks",
),
(
"API_THROTTLE_RESPONSE_SIZE_ENABLED_CIDR",
"API: Response size throttle enabled for ip blocks",
),
(
"API_THROTTLE_RESPONSE_SIZE_THRESHOLD_IP",
"API: Response size throttle size threshold for ip addresses (bytes)",
),
(
"API_THROTTLE_RESPONSE_SIZE_RATE_IP",
"API: Response size throttle rate for ip addresses",
),
(
"API_THROTTLE_RESPONSE_SIZE_ENABLED_IP",
"API: Response size throttle enabled for ip addresses",
),
(
"API_THROTTLE_RESPONSE_SIZE_THRESHOLD_USER",
"API: Response size throttle size threshold for authenticated users (bytes)",
),
(
"API_THROTTLE_RESPONSE_SIZE_RATE_USER",
"API: Response size throttle rate for authenticated users",
),
(
"API_THROTTLE_RESPONSE_SIZE_ENABLED_USER",
"API: Response size throttle enabled for authenticated users",
),
(
"API_THROTTLE_RESPONSE_SIZE_THRESHOLD_ORG",
"API: Response size throttle size threshold for organization api-keys (bytes)",
),
(
"API_THROTTLE_RESPONSE_SIZE_RATE_ORG",
"API: Response size throttle rate for organization api-keys",
),
(
"API_THROTTLE_RESPONSE_SIZE_ENABLED_ORG",
"API: Response size throttle enabled for organization api-keys",
),
(
"API_THROTTLE_RATE_ANON_MSG",
"API: Anonymous API throttle rate message",
),
(
"API_THROTTLE_RATE_USER_MSG",
"API: Authenticated API throttle rate message",
),
],
max_length=255,
unique=True,
),
),
]