Don't cache the entire converter class to lower memory usage. Instead a get_converter_class() function is now provided to load the converter backend class. Add model permission inheritance to transformations to removel custom permission checking code in the views. User keyword arguments. Update URL parameters to the '_id' form. Add missing edit and delete icons. Improve the create icon using composition. Update add to comply with MERCs 5 and 6. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
28 lines
947 B
Python
28 lines
947 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.conf.urls import url
|
|
|
|
from .views import (
|
|
TransformationCreateView, TransformationDeleteView, TransformationEditView,
|
|
TransformationListView
|
|
)
|
|
|
|
urlpatterns = [
|
|
url(
|
|
regex=r'^objects/(?P<app_label>[-\w]+)/(?P<model>[-\w]+)/(?P<object_id>\d+)/transformations/$',
|
|
name='transformation_list', view=TransformationListView.as_view()
|
|
),
|
|
url(
|
|
regex=r'^objects/(?P<app_label>[-\w]+)/(?P<model>[-\w]+)/(?P<object_id>\d+)/transformations/create/$',
|
|
name='transformation_create', view=TransformationCreateView.as_view()
|
|
),
|
|
url(
|
|
regex=r'^transformations/delete/(?P<transformation_id>\d+)/$',
|
|
name='transformation_delete', view=TransformationDeleteView.as_view()
|
|
),
|
|
url(
|
|
regex=r'^transformations/edit/(?P<transformation_id>\d+)/$',
|
|
name='transformation_edit', view=TransformationEditView.as_view()
|
|
),
|
|
]
|