from django.urls import path
from django.views.i18n import JavaScriptCatalog

from locking.views import lock, unlock, is_locked, js_variables

urlpatterns = [
    path('<str:app>/<str:model>/<int:id>/lock/', lock),
    path('<str:app>/<str:model>/<int:id>/unlock/', unlock),
    path('<str:app>/<str:model>/<int:id>/is_locked/', is_locked),
    path('variables.js', js_variables, name='locking_variables'),
]

urlpatterns += [
    path('jsi18n/', JavaScriptCatalog.as_view(packages=['locking'])),
]
