@@ -221,7 +221,7 @@ def _get_csv_data(self):
221
221
def get_context_data (self , ** kwargs ):
222
222
organization = self .get_organization ()
223
223
context = super ().get_context_data (** kwargs )
224
- context ['enabled' ] = self ._is_enabled (organization )
224
+ context ['enabled' ] = self ._is_feature_enabled (organization )
225
225
context ['days_limit' ] = self ._get_retention_days_limit (organization )
226
226
context ['filter' ] = self .filter
227
227
context ['AuditLog' ] = AuditLog
@@ -242,7 +242,7 @@ def _get_start_date(self):
242
242
def _get_queryset (self ):
243
243
"""Return the queryset without filters."""
244
244
organization = self .get_organization ()
245
- if not self ._is_enabled (organization ):
245
+ if not self ._is_feature_enabled (organization ):
246
246
return AuditLog .objects .none ()
247
247
start_date = self ._get_start_date ()
248
248
queryset = AuditLog .objects .filter (
@@ -282,7 +282,7 @@ def _get_retention_days_limit(self, organization):
282
282
default = settings .RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS ,
283
283
)
284
284
285
- def _is_enabled (self , organization ):
285
+ def _is_feature_enabled (self , organization ):
286
286
return PlanFeature .objects .has_feature (
287
287
organization ,
288
288
type = self .feature_type ,
0 commit comments