Coverage for src/paperap/models/document/meta.py: 100%

1 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-03-22 16:02 -0400

1""" 

2 

3 

4 

5 

6---------------------------------------------------------------------------- 

7 

8METADATA: 

9 

10File: meta.py 

11 Project: paperap 

12Created: 2025-03-22 

13 Version: 0.0.10 

14Author: Jess Mann 

15Email: jess@jmann.me 

16 Copyright (c) 2025 Jess Mann 

17 

18---------------------------------------------------------------------------- 

19 

20LAST MODIFIED: 

21 

222025-03-22 By Jess Mann 

23 

24""" 

25SUPPORTED_FILTERING_PARAMS = { 

26 "id__in", 

27 "id", 

28 "title__istartswith", 

29 "title__iendswith", 

30 "title__icontains", 

31 "title__iexact", 

32 "content__istartswith", 

33 "content__iendswith", 

34 "content__icontains", 

35 "content__iexact", 

36 "archive_serial_number", 

37 "archive_serial_number__gt", 

38 "archive_serial_number__gte", 

39 "archive_serial_number__lt", 

40 "archive_serial_number__lte", 

41 "archive_serial_number__isnull", 

42 "content__contains", # maybe? 

43 "correspondent__isnull", 

44 "correspondent__id__in", 

45 "correspondent__id", 

46 "correspondent__name__istartswith", 

47 "correspondent__name__iendswith", 

48 "correspondent__name__icontains", 

49 "correspondent__name__iexact", 

50 "correspondent__slug__iexact", # maybe? 

51 "created__year", 

52 "created__month", 

53 "created__day", 

54 "created__date__gt", 

55 "created__gt", 

56 "created__date__lt", 

57 "created__lt", 

58 "added__year", 

59 "added__month", 

60 "added__day", 

61 "added__date__gt", 

62 "added__gt", 

63 "added__date__lt", 

64 "added__lt", 

65 "original_filename__istartswith", 

66 "original_filename__iendswith", 

67 "original_filename__icontains", 

68 "original_filename__iexact", 

69 "checksum__istartswith", 

70 "checksum__iendswith", 

71 "checksum__icontains", 

72 "checksum__iexact", 

73 "tags__id__in", 

74 "tags__id", 

75 "tags__name__istartswith", 

76 "tags__name__iendswith", 

77 "tags__name__icontains", 

78 "tags__name__iexact", 

79 "document_type__isnull", 

80 "document_type__id__in", 

81 "document_type__id", 

82 "document_type__name__istartswith", 

83 "document_type__name__iendswith", 

84 "document_type__name__icontains", 

85 "document_type__name__iexact", 

86 "storage_path__isnull", 

87 "storage_path__id__in", 

88 "storage_path__id", 

89 "storage_path__name__istartswith", 

90 "storage_path__name__iendswith", 

91 "storage_path__name__icontains", 

92 "storage_path__name__iexact", 

93 "owner__isnull", 

94 "owner__id__in", 

95 "owner__id", 

96 "is_tagged", 

97 "tags__id__all", 

98 "tags__id__none", 

99 "correspondent__id__none", 

100 "document_type__id__none", 

101 "storage_path__id__none", 

102 "is_in_inbox", 

103 "title_content", 

104 "owner__id__none", 

105 "custom_fields__icontains", 

106 "custom_fields__id__all", 

107 "custom_fields__id__none", # ?? 

108 "custom_fields__id__in", 

109 "custom_field_query", # ?? 

110 "has_custom_fields", 

111 "shared_by__id", 

112 "shared_by__id__in", 

113}