Skip to content

Commit effebd6

Browse files
authored
Rename audit retention days setting (#8517)
I'm using this on .com and I think it's more explicit.
1 parent ad1abd1 commit effebd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readthedocs/profiles/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_object(self, queryset=None): # noqa
181181
class UserSecurityLogView(PrivateViewMixin, ListView):
182182
model = AuditLog
183183
template_name = 'profiles/private/security_log.html'
184-
days_limit = settings.RTD_DEFAULT_LOGS_RETENTION_DAYS
184+
days_limit = settings.RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS
185185

186186
def get(self, request, *args, **kwargs):
187187
download_data = request.GET.get('download', False)

readthedocs/settings/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def SESSION_COOKIE_SAMESITE(self):
122122
RTD_CLEAN_AFTER_BUILD = False
123123
RTD_MAX_CONCURRENT_BUILDS = 4
124124
RTD_BUILD_STATUS_API_NAME = 'docs/readthedocs'
125-
RTD_DEFAULT_LOGS_RETENTION_DAYS = 30 * 3
125+
RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS = 30 * 3
126126

127127
# Database and API hitting settings
128128
DONT_HIT_API = False

0 commit comments

Comments
 (0)