change rest permissions to match django
All checks were successful
DEV-234/pipeline/head This commit looks good

This commit is contained in:
= 2025-01-12 11:36:17 -05:00
parent b8551834c1
commit 0afc28c616
2 changed files with 3 additions and 2 deletions

View File

@ -115,11 +115,12 @@ REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
'rest_framework.permissions.DjangoModelPermissions',
]
}
# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/

View File

@ -4,6 +4,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/accounts/', include('accounts.urls')),
path('accounts/', include('accounts.urls')),
path('', include('main.urls')),
]