-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'longze/the-rest-of-the-fixes-1' into fe…
…ature/django_upgrade
- Loading branch information
Showing
91 changed files
with
748 additions
and
1,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.ProviderAssetFileList.as_view(), name='list'), | ||
url(r'^create/$', views.ProviderAssetFileCreate.as_view(), name='create'), | ||
url(r'^(?P<asset_id>[0-9]+)/$', views.ProviderAssetFileDetail.as_view(), name='detail'), | ||
url(r'^(?P<asset_id>[0-9]+)/delete/$', views.ProviderAssetFileDelete.as_view(), name='delete'), | ||
re_path(r'^$', views.ProviderAssetFileList.as_view(), name='list'), | ||
re_path(r'^create/$', views.ProviderAssetFileCreate.as_view(), name='create'), | ||
re_path(r'^(?P<asset_id>[0-9]+)/$', views.ProviderAssetFileDetail.as_view(), name='detail'), | ||
re_path(r'^(?P<asset_id>[0-9]+)/delete/$', views.ProviderAssetFileDelete.as_view(), name='delete'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from admin.banners import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.BannerList.as_view(), name='list'), | ||
url(r'^create/$', views.CreateBanner.as_view(), name='create'), | ||
url(r'^(?P<banner_id>[0-9]+)/$', views.BannerDetail.as_view(), name='detail'), | ||
url(r'^(?P<banner_id>[0-9]+)/delete/$', views.DeleteBanner.as_view(), name='delete'), | ||
re_path(r'^$', views.BannerList.as_view(), name='list'), | ||
re_path(r'^create/$', views.CreateBanner.as_view(), name='create'), | ||
re_path(r'^(?P<banner_id>[0-9]+)/$', views.BannerDetail.as_view(), name='detail'), | ||
re_path(r'^(?P<banner_id>[0-9]+)/delete/$', views.DeleteBanner.as_view(), name='delete'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.BrandList.as_view(), name='list'), | ||
url(r'^create/$', views.BrandCreate.as_view(), name='create'), | ||
url(r'^(?P<brand_id>[0-9]+)/$', views.BrandDetail.as_view(), name='detail'), | ||
re_path(r'^$', views.BrandList.as_view(), name='list'), | ||
re_path(r'^create/$', views.BrandCreate.as_view(), name='create'), | ||
re_path(r'^(?P<brand_id>[0-9]+)/$', views.BrandDetail.as_view(), name='detail'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^create/$', views.CreateCollectionProvider.as_view(), name='create'), | ||
url(r'^$', views.CollectionProviderList.as_view(), name='list'), | ||
url(r'^import/$', views.ImportCollectionProvider.as_view(), name='import'), | ||
url(r'^(?P<collection_provider_id>[a-z0-9]+)/$', views.CollectionProviderDetail.as_view(), name='detail'), | ||
url(r'^(?P<collection_provider_id>[a-z0-9]+)/delete/$', views.DeleteCollectionProvider.as_view(), name='delete'), | ||
url(r'^(?P<collection_provider_id>[a-z0-9]+)/export/$', views.ExportColectionProvider.as_view(), name='export'), | ||
url(r'^(?P<collection_provider_id>[a-z0-9]+)/import/$', views.ImportCollectionProvider.as_view(), name='import'), | ||
url(r'^(?P<collection_provider_id>[a-z0-9]+)/cannot_delete/$', views.CannotDeleteProvider.as_view(), name='cannot_delete'), | ||
re_path(r'^create/$', views.CreateCollectionProvider.as_view(), name='create'), | ||
re_path(r'^$', views.CollectionProviderList.as_view(), name='list'), | ||
re_path(r'^import/$', views.ImportCollectionProvider.as_view(), name='import'), | ||
re_path(r'^(?P<collection_provider_id>[a-z0-9]+)/$', views.CollectionProviderDetail.as_view(), name='detail'), | ||
re_path(r'^(?P<collection_provider_id>[a-z0-9]+)/delete/$', views.DeleteCollectionProvider.as_view(), name='delete'), | ||
re_path(r'^(?P<collection_provider_id>[a-z0-9]+)/export/$', views.ExportColectionProvider.as_view(), name='export'), | ||
re_path(r'^(?P<collection_provider_id>[a-z0-9]+)/import/$', views.ImportCollectionProvider.as_view(), name='import'), | ||
re_path(r'^(?P<collection_provider_id>[a-z0-9]+)/cannot_delete/$', views.CannotDeleteProvider.as_view(), name='cannot_delete'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
|
||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.CommentList.as_view(), name='comments'), | ||
url(r'^(?P<comment_id>[a-z0-9]+)/$', views.CommentDetail.as_view(), name='comment-detail'), | ||
url(r'^(?P<comment_id>[a-z0-9]+)/mark_spam/$', views.CommentSpamView.as_view(), name='mark-spam'), | ||
url(r'^user/(?P<user_guid>[a-z0-9]+)/$', views.UserCommentList.as_view(), name='user-comment'), | ||
re_path(r'^$', views.CommentList.as_view(), name='comments'), | ||
re_path(r'^(?P<comment_id>[a-z0-9]+)/$', views.CommentDetail.as_view(), name='comment-detail'), | ||
re_path(r'^(?P<comment_id>[a-z0-9]+)/mark_spam/$', views.CommentSpamView.as_view(), name='mark-spam'), | ||
re_path(r'^user/(?P<user_guid>[a-z0-9]+)/$', views.UserCommentList.as_view(), name='user-comment'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
|
||
from admin.common_auth import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^login/?$', views.LoginView.as_view(), name='login'), | ||
url(r'^logout/$', views.logout_user, name='logout'), | ||
url(r'^register/$', views.RegisterUser.as_view(), name='register'), | ||
url(r'^settings/desk/$', views.DeskUserCreateFormView.as_view(), name='desk'), | ||
url(r'^settings/desk/update/$', views.DeskUserUpdateFormView.as_view(), name='desk_update'), | ||
re_path(r'^login/?$', views.LoginView.as_view(), name='login'), | ||
re_path(r'^logout/$', views.logout_user, name='logout'), | ||
re_path(r'^register/$', views.RegisterUser.as_view(), name='register'), | ||
re_path(r'^settings/desk/$', views.DeskUserCreateFormView.as_view(), name='desk'), | ||
re_path(r'^settings/desk/update/$', views.DeskUserUpdateFormView.as_view(), name='desk_update'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.InstitutionList.as_view(), name='list'), | ||
url(r'^create/$', views.CreateInstitution.as_view(), name='create'), | ||
url(r'^import/$', views.ImportInstitution.as_view(), name='import'), | ||
url(r'^(?P<institution_id>[0-9]+)/$', views.InstitutionDetail.as_view(), name='detail'), | ||
url(r'^(?P<institution_id>[0-9]+)/export/$', views.InstitutionExport.as_view(), name='export'), | ||
url(r'^(?P<institution_id>[0-9]+)/delete/$', views.DeleteInstitution.as_view(), name='delete'), | ||
url(r'^(?P<institution_id>[0-9]+)/deactivate/$', views.DeactivateInstitution.as_view(), name='deactivate'), | ||
url(r'^(?P<institution_id>[0-9]+)/reactivate/$', views.ReactivateInstitution.as_view(), name='reactivate'), | ||
url(r'^(?P<institution_id>[0-9]+)/cannot_delete/$', views.CannotDeleteInstitution.as_view(), name='cannot_delete'), | ||
url(r'^(?P<institution_id>[0-9]+)/nodes/$', views.InstitutionNodeList.as_view(), name='nodes'), | ||
url(r'^(?P<institution_id>[0-9]+)/register/$', views.InstitutionalMetricsAdminRegister.as_view(), name='register_metrics_admin'), | ||
re_path(r'^$', views.InstitutionList.as_view(), name='list'), | ||
re_path(r'^create/$', views.CreateInstitution.as_view(), name='create'), | ||
re_path(r'^import/$', views.ImportInstitution.as_view(), name='import'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/$', views.InstitutionDetail.as_view(), name='detail'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/export/$', views.InstitutionExport.as_view(), name='export'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/delete/$', views.DeleteInstitution.as_view(), name='delete'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/deactivate/$', views.DeactivateInstitution.as_view(), name='deactivate'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/reactivate/$', views.ReactivateInstitution.as_view(), name='reactivate'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/cannot_delete/$', views.CannotDeleteInstitution.as_view(), name='cannot_delete'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/nodes/$', views.InstitutionNodeList.as_view(), name='nodes'), | ||
re_path(r'^(?P<institution_id>[0-9]+)/register/$', views.InstitutionalMetricsAdminRegister.as_view(), name='register_metrics_admin'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from admin.internet_archive import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.InternetArchiveView.as_view(), name='internet_archive'), | ||
url(r'^pigeon', views.SendToPigeon.as_view(), name='pigeon'), | ||
url(r'^create_ia_subcollections', views.CreateIASubcollections.as_view(), name='create_ia_subcollections'), | ||
url(r'^check_ia_metadata', views.CheckIAMetadata.as_view(), name='check_ia_metadata'), | ||
url(r'^sync_ia_metadata', views.SyncIAMetadata.as_view(), name='sync_ia_metadata'), | ||
re_path(r'^$', views.InternetArchiveView.as_view(), name='internet_archive'), | ||
re_path(r'^pigeon', views.SendToPigeon.as_view(), name='pigeon'), | ||
re_path(r'^create_ia_subcollections', views.CreateIASubcollections.as_view(), name='create_ia_subcollections'), | ||
re_path(r'^check_ia_metadata', views.CheckIAMetadata.as_view(), name='check_ia_metadata'), | ||
re_path(r'^sync_ia_metadata', views.SyncIAMetadata.as_view(), name='sync_ia_metadata'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
|
||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.MaintenanceDisplay.as_view(), name='display'), | ||
url(r'^remove/$', views.DeleteMaintenance.as_view(), name='delete'), | ||
re_path(r'^$', views.MaintenanceDisplay.as_view(), name='display'), | ||
re_path(r'^remove/$', views.DeleteMaintenance.as_view(), name='delete'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
|
||
from admin.management import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.ManagementCommands.as_view(), name='commands'), | ||
url(r'^waffle_flag', views.WaffleFlag.as_view(), name='waffle_flag'), | ||
url(r'^update_registration_schemas', | ||
re_path(r'^$', views.ManagementCommands.as_view(), name='commands'), | ||
re_path(r'^waffle_flag', views.WaffleFlag.as_view(), name='waffle_flag'), | ||
re_path(r'^update_registration_schemas', | ||
views.UpdateRegistrationSchemas.as_view(), | ||
name='update_registration_schemas'), | ||
url(r'^get_spam_csv', views.GetSpamDataCSV.as_view(), name='get_spam_csv'), | ||
url(r'^ban_spam_regex', views.BanSpamByRegex.as_view(), name='ban_spam_regex'), | ||
url(r'^daily_reporters_go', views.DailyReportersGo.as_view(), name='daily_reporters_go'), | ||
re_path(r'^get_spam_csv', views.GetSpamDataCSV.as_view(), name='get_spam_csv'), | ||
re_path(r'^ban_spam_regex', views.BanSpamByRegex.as_view(), name='ban_spam_regex'), | ||
re_path(r'^daily_reporters_go', views.DailyReportersGo.as_view(), name='daily_reporters_go'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
|
||
from admin.meetings import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.MeetingListView.as_view(), name='list'), | ||
url(r'^create/$', views.MeetingCreateFormView.as_view(), name='create'), | ||
url(r'^(?P<endpoint>[a-zA-Z0-9_]+)/$', views.MeetingFormView.as_view(), | ||
re_path(r'^$', views.MeetingListView.as_view(), name='list'), | ||
re_path(r'^create/$', views.MeetingCreateFormView.as_view(), name='create'), | ||
re_path(r'^(?P<endpoint>[a-zA-Z0-9_]+)/$', views.MeetingFormView.as_view(), | ||
name='detail'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django.conf.urls import url | ||
from django.conf.urls import re_path | ||
from django.contrib.auth.decorators import login_required as login | ||
|
||
from . import views | ||
|
||
app_name = 'admin' | ||
|
||
urlpatterns = [ | ||
url(r'^$', login(views.MetricsView.as_view()), name='metrics'), | ||
re_path(r'^$', login(views.MetricsView.as_view()), name='metrics'), | ||
] |
Oops, something went wrong.