|
|
@@ -1,7 +1,6 @@
|
|
|
from django.urls import path
|
|
|
|
|
|
-from extras import views
|
|
|
-from extras.models import ConfigContext, CustomField, JournalEntry, Tag
|
|
|
+from extras import models, views
|
|
|
|
|
|
|
|
|
app_name = 'extras'
|
|
|
@@ -16,7 +15,20 @@ urlpatterns = [
|
|
|
path('custom-fields/<int:pk>/', views.CustomFieldView.as_view(), name='customfield'),
|
|
|
path('custom-fields/<int:pk>/edit/', views.CustomFieldEditView.as_view(), name='customfield_edit'),
|
|
|
path('custom-fields/<int:pk>/delete/', views.CustomFieldDeleteView.as_view(), name='customfield_delete'),
|
|
|
- path('custom-fields/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='customfield_changelog', kwargs={'model': CustomField}),
|
|
|
+ path('custom-fields/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='customfield_changelog',
|
|
|
+ kwargs={'model': models.CustomField}),
|
|
|
+
|
|
|
+ # Custom links
|
|
|
+ path('custom-links/', views.CustomLinkListView.as_view(), name='customlink_list'),
|
|
|
+ path('custom-links/add/', views.CustomLinkEditView.as_view(), name='customlink_add'),
|
|
|
+ path('custom-links/import/', views.CustomLinkBulkImportView.as_view(), name='customlink_import'),
|
|
|
+ path('custom-links/edit/', views.CustomLinkBulkEditView.as_view(), name='customlink_bulk_edit'),
|
|
|
+ path('custom-links/delete/', views.CustomLinkBulkDeleteView.as_view(), name='customlink_bulk_delete'),
|
|
|
+ path('custom-links/<int:pk>/', views.CustomLinkView.as_view(), name='customlink'),
|
|
|
+ path('custom-links/<int:pk>/edit/', views.CustomLinkEditView.as_view(), name='customlink_edit'),
|
|
|
+ path('custom-links/<int:pk>/delete/', views.CustomLinkDeleteView.as_view(), name='customlink_delete'),
|
|
|
+ path('custom-links/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='customlink_changelog',
|
|
|
+ kwargs={'model': models.CustomLink}),
|
|
|
|
|
|
# Tags
|
|
|
path('tags/', views.TagListView.as_view(), name='tag_list'),
|
|
|
@@ -27,7 +39,8 @@ urlpatterns = [
|
|
|
path('tags/<int:pk>/', views.TagView.as_view(), name='tag'),
|
|
|
path('tags/<int:pk>/edit/', views.TagEditView.as_view(), name='tag_edit'),
|
|
|
path('tags/<int:pk>/delete/', views.TagDeleteView.as_view(), name='tag_delete'),
|
|
|
- path('tags/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='tag_changelog', kwargs={'model': Tag}),
|
|
|
+ path('tags/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='tag_changelog',
|
|
|
+ kwargs={'model': models.Tag}),
|
|
|
|
|
|
# Config contexts
|
|
|
path('config-contexts/', views.ConfigContextListView.as_view(), name='configcontext_list'),
|
|
|
@@ -37,7 +50,8 @@ urlpatterns = [
|
|
|
path('config-contexts/<int:pk>/', views.ConfigContextView.as_view(), name='configcontext'),
|
|
|
path('config-contexts/<int:pk>/edit/', views.ConfigContextEditView.as_view(), name='configcontext_edit'),
|
|
|
path('config-contexts/<int:pk>/delete/', views.ConfigContextDeleteView.as_view(), name='configcontext_delete'),
|
|
|
- path('config-contexts/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='configcontext_changelog', kwargs={'model': ConfigContext}),
|
|
|
+ path('config-contexts/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='configcontext_changelog',
|
|
|
+ kwargs={'model': models.ConfigContext}),
|
|
|
|
|
|
# Image attachments
|
|
|
path('image-attachments/<int:pk>/edit/', views.ImageAttachmentEditView.as_view(), name='imageattachment_edit'),
|
|
|
@@ -51,7 +65,8 @@ urlpatterns = [
|
|
|
path('journal-entries/<int:pk>/', views.JournalEntryView.as_view(), name='journalentry'),
|
|
|
path('journal-entries/<int:pk>/edit/', views.JournalEntryEditView.as_view(), name='journalentry_edit'),
|
|
|
path('journal-entries/<int:pk>/delete/', views.JournalEntryDeleteView.as_view(), name='journalentry_delete'),
|
|
|
- path('journal-entries/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='journalentry_changelog', kwargs={'model': JournalEntry}),
|
|
|
+ path('journal-entries/<int:pk>/changelog/', views.ObjectChangeLogView.as_view(), name='journalentry_changelog',
|
|
|
+ kwargs={'model': models.JournalEntry}),
|
|
|
|
|
|
# Change logging
|
|
|
path('changelog/', views.ObjectChangeListView.as_view(), name='objectchange_list'),
|