Skip to content

Commit

Permalink
Remove unneeded static context_processors check
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed May 28, 2023
1 parent 9da4a21 commit f873915
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions erp_framework/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,3 @@ def check_crequest(app_configs=None, **kwargs):
)
)
return errors


@register()
def check_initial_settings(app_configs, **kwargs):
errors = []

if (
"django.template.context_processors.static"
not in settings.TEMPLATES[0]["OPTIONS"]["context_processors"]
):
errors.append(
Error(
"django.template.context_processors.static is missing",
hint=(
'Add "django.template.context_processors.static" to'
" context_processors"
),
obj="settings",
id="erp_framework.E003",
)
)

return errors

0 comments on commit f873915

Please sign in to comment.