Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions patches/01_add_api_urls.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
diff --git a/coldfront/config/urls.py b/coldfront/config/urls.py
index 353e360..220378a 100644
index 78d9589..f1cd16a 100644
--- a/coldfront/config/urls.py
+++ b/coldfront/config/urls.py
@@ -36,3 +36,6 @@ if 'mozilla_django_oidc' in settings.INSTALLED_APPS:
@@ -52,6 +52,9 @@ if "mozilla_django_oidc" in settings.INSTALLED_APPS:
if "django_su.backends.SuBackend" in settings.AUTHENTICATION_BACKENDS:
urlpatterns.append(path("su/", include("django_su.urls")))

if 'django_su.backends.SuBackend' in settings.AUTHENTICATION_BACKENDS:
urlpatterns.append(path('su/', include('django_su.urls')))
+
+if 'coldfront_plugin_api' in settings.INSTALLED_APPS:
+ urlpatterns.append(path('api/', include('coldfront_plugin_api.urls')))
+

def export_as_json(modeladmin, request, queryset):
response = HttpResponse(content_type="application/json")
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coldfront==1.1.6
coldfront==1.1.7
djangorestframework
mozilla-django-oidc
django-scim2 >=0.19.0, <0.20.0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package_dir =
packages = find:
python_requires = >=3.8
install_requires =
coldfront==1.1.6
coldfront==1.1.7
djangorestframework
mozilla-django-oidc
django-scim2 >=0.19.0, <0.20.0
Expand Down
Loading