Files
edx-platform/common/djangoapps/util/models.py

15 lines
453 B
Python

"""Models for the util app. """
from config_models.models import ConfigurationModel
class RateLimitConfiguration(ConfigurationModel):
"""Configuration flag to enable/disable rate limiting.
Applies to Django Rest Framework views.
This is useful for disabling rate limiting for performance tests.
When enabled, it will disable rate limiting on any view decorated
with the `can_disable_rate_limit` class decorator.
"""
pass