Coverage for apis_core/history/urls.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.5.3, created at 2025-06-25 10:00 +0000

1from django.urls import path 

2 

3from apis_core.history import views 

4from apis_core.history.api_views import ( 

5 EntityHistoryLogs, 

6 GenericHistoryLog, 

7) 

8 

9app_name = "history" 

10 

11 

12urlpatterns = [ 

13 path( 

14 "<contenttype:contenttype>/<int:pk>/history", 

15 views.HistoryView.as_view(), 

16 name="history", 

17 ), 

18 path( 

19 "api/version_log/<contenttype:contenttype>/<int:pk>/", 

20 EntityHistoryLogs.as_view(), 

21 name="entityhistorylog", 

22 ), 

23 path( 

24 "api/entity_combined/<contenttype:contenttype>/<int:pk>/", 

25 GenericHistoryLog.as_view(), 

26 name="generichistorylog", 

27 ), 

28 path( 

29 "<contenttype:contenttype>/<int:pk>/reset", 

30 views.HistoryReset.as_view(), 

31 name="reset", 

32 ), 

33]