Skip to content

Commit

Permalink
Fix for production
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMagos committed Nov 10, 2023
1 parent 4d969eb commit 86a2999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions smartreport/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend']
}

if (os.environ.get("DEBUG").lower() == "false"):
REST_FRAMEWORK["DEFAULT_PERMISSION_CLASSES"] = (
'smartreport_app.permissions.FullObjectPermission',
)
# if (os.environ.get("DEBUG").lower() == "false"):
# REST_FRAMEWORK["DEFAULT_PERMISSION_CLASSES"] = (
# 'smartreport_app.permissions.FullObjectPermission',
# )


# Internationalization
Expand Down

0 comments on commit 86a2999

Please sign in to comment.