aa-bulletin-board 2.3.1__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/PKG-INFO +1 -1
  2. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/__init__.py +1 -1
  3. aa_bulletin_board-2.3.2/aa_bulletin_board/app_settings.py +20 -0
  4. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/cs_CZ/LC_MESSAGES/django.po +1 -1
  5. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/de/LC_MESSAGES/django.po +1 -1
  6. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/django.pot +2 -2
  7. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/es/LC_MESSAGES/django.po +1 -1
  8. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.po +1 -1
  9. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.po +1 -1
  10. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ja/LC_MESSAGES/django.po +1 -1
  11. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.po +1 -1
  12. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/nl_NL/LC_MESSAGES/django.po +1 -1
  13. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.po +1 -1
  14. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ru/LC_MESSAGES/django.po +1 -1
  15. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/sk/LC_MESSAGES/django.po +1 -1
  16. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/uk/LC_MESSAGES/django.po +1 -1
  17. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  18. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templatetags/aa_bulletin_board.py +2 -2
  19. aa_bulletin_board-2.3.2/aa_bulletin_board/tests/test_settings.py +37 -0
  20. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/test_templatetags.py +4 -3
  21. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/.gitignore +0 -0
  22. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/LICENSE +0 -0
  23. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/README.md +0 -0
  24. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/apps.py +0 -0
  25. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/auth_hooks.py +0 -0
  26. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/constants.py +0 -0
  27. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/forms.py +0 -0
  28. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/helper/__init__.py +0 -0
  29. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/helper/static_files.py +0 -0
  30. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/helpers.py +0 -0
  31. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  32. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/de/LC_MESSAGES/django.mo +0 -0
  33. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/es/LC_MESSAGES/django.mo +0 -0
  34. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  35. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  36. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ja/LC_MESSAGES/django.mo +0 -0
  37. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  38. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/nl_NL/LC_MESSAGES/django.mo +0 -0
  39. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
  40. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/ru/LC_MESSAGES/django.mo +0 -0
  41. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/sk/LC_MESSAGES/django.mo +0 -0
  42. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/uk/LC_MESSAGES/django.mo +0 -0
  43. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  44. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/managers.py +0 -0
  45. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0001_initial.py +0 -0
  46. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0002_alter_bulletin_slug.py +0 -0
  47. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0003_group_restrictions.py +0 -0
  48. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0004_model_translation.py +0 -0
  49. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0005_alter_general_options.py +0 -0
  50. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/0006_switch_to_ckeditor_5.py +0 -0
  51. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/migrations/__init__.py +0 -0
  52. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/models.py +0 -0
  53. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.css +0 -0
  54. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css +0 -0
  55. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css.map +0 -0
  56. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-equal-height.js +0 -0
  57. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-equal-height.min.js +0 -0
  58. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-equal-height.min.js.map +0 -0
  59. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.js +0 -0
  60. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js +0 -0
  61. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js.map +0 -0
  62. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/libs/sumoselect/3.4.9/README.md +0 -0
  63. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/libs/sumoselect/3.4.9/jquery.sumoselect.js +0 -0
  64. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/libs/sumoselect/3.4.9/jquery.sumoselect.min.js +0 -0
  65. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/libs/sumoselect/3.4.9/sumoselect.css +0 -0
  66. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/static/aa_bulletin_board/libs/sumoselect/3.4.9/sumoselect.min.css +0 -0
  67. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/base.html +0 -0
  68. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bulletin.html +0 -0
  69. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/aa-bulletin-board-css.html +0 -0
  70. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/aa-bulletin-board-equal-height-js.html +0 -0
  71. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/aa-bulletin-board-oembed-js.html +0 -0
  72. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/ckeditor5-css.html +0 -0
  73. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/ckeditor5-js.html +0 -0
  74. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/sumoselect-css.html +0 -0
  75. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/bundles/sumoselect-js.html +0 -0
  76. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/dashboard.html +0 -0
  77. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html +0 -0
  78. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html +0 -0
  79. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/partials/footer/app-translation-footer.html +0 -0
  80. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templates/aa_bulletin_board/partials/header/page-header.html +0 -0
  81. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/templatetags/__init__.py +0 -0
  82. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/__init__.py +0 -0
  83. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/test_access.py +0 -0
  84. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/test_auth_hooks.py +0 -0
  85. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/test_bulletins.py +0 -0
  86. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/test_user_interface.py +0 -0
  87. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/tests/utils.py +0 -0
  88. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/urls.py +0 -0
  89. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/aa_bulletin_board/views.py +0 -0
  90. {aa_bulletin_board-2.3.1 → aa_bulletin_board-2.3.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aa-bulletin-board
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: A simple bulletin board for Alliance Auth
5
5
  Project-URL: Changelog, https://github.com/ppfeufer/aa-bulletin-board/blob/master/CHANGELOG.md
6
6
  Project-URL: Documentation, https://github.com/ppfeufer/aa-bulletin-board/blob/master/README.md
@@ -5,5 +5,5 @@ App init
5
5
  # AA Bulletin Board
6
6
  from aa_bulletin_board.constants import APP_TITLE
7
7
 
8
- __version__ = "2.3.1"
8
+ __version__ = "2.3.2"
9
9
  __title__ = APP_TITLE
@@ -0,0 +1,20 @@
1
+ """
2
+ App settings
3
+ """
4
+
5
+ # Standard Library
6
+ from re import RegexFlag
7
+
8
+ # Django
9
+ from django.conf import settings
10
+
11
+
12
+ def debug_enabled() -> RegexFlag:
13
+ """
14
+ Check if DEBUG is enabled
15
+
16
+ :return:
17
+ :rtype:
18
+ """
19
+
20
+ return settings.DEBUG
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
9
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
9
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
10
10
  "PO-Revision-Date: 2024-07-10 14:26+0000\n"
11
11
  "Last-Translator: Dadas Aideron <dadas.aideron@gmail.com>\n"
12
12
  "Language-Team: Czech <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/cs/>\n"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
9
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
9
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
10
10
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/de/>\n"
@@ -6,9 +6,9 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: AA Bulletin Board 2.3.1\n"
9
+ "Project-Id-Version: AA Bulletin Board 2.3.2\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
11
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
11
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
11
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
11
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
12
12
  "PO-Revision-Date: 2024-12-02 17:40+0000\n"
13
13
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
14
14
  "Language-Team: Spanish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/es/>\n"
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: PACKAGE VERSION\n"
12
12
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
13
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
13
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
14
14
  "PO-Revision-Date: 2025-01-22 06:17+0000\n"
15
15
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
16
16
  "Language-Team: French <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/fr/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
10
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
11
11
  "PO-Revision-Date: 2024-12-22 21:15+0000\n"
12
12
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
13
13
  "Language-Team: Italian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/it/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
10
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
11
11
  "PO-Revision-Date: 2024-08-05 10:10+0000\n"
12
12
  "Last-Translator: Anata_no_Usiro <yt23542354m@gmail.com>\n"
13
13
  "Language-Team: Japanese <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/ja/>\n"
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: PACKAGE VERSION\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
12
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
12
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
13
13
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
14
14
  "Last-Translator: Rodpold Shard <rodpold@gmail.com>\n"
15
15
  "Language-Team: Korean <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/ko/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
10
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Dutch <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/nl/>\n"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
9
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
9
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
10
10
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/pl/>\n"
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: PACKAGE VERSION\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
12
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
12
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
13
13
  "PO-Revision-Date: 2024-06-07 13:27+0000\n"
14
14
  "Last-Translator: Roycce_ <malyasov.roma@mail.ru>\n"
15
15
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/ru/>\n"
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
10
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/sk/>\n"
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: PACKAGE VERSION\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
12
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
12
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
13
13
  "PO-Revision-Date: 2025-02-23 23:17+0000\n"
14
14
  "Last-Translator: M <skrypets@gmail.com>\n"
15
15
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/uk/>\n"
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: PACKAGE VERSION\n"
12
12
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
13
- "POT-Creation-Date: 2025-03-06 13:29+0100\n"
13
+ "POT-Creation-Date: 2025-03-06 15:55+0100\n"
14
14
  "PO-Revision-Date: 2024-05-28 16:27+0000\n"
15
15
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
16
16
  "Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/zh_Hans/>\n"
@@ -6,7 +6,6 @@ Versioned static URLs to break browser caches when changing the app version
6
6
  import os
7
7
 
8
8
  # Django
9
- from django.conf import settings
10
9
  from django.template.defaulttags import register
11
10
  from django.templatetags.static import static
12
11
  from django.utils.safestring import mark_safe
@@ -19,6 +18,7 @@ from app_utils.logging import LoggerAddTag
19
18
 
20
19
  # AA Bulletin Board
21
20
  from aa_bulletin_board import __title__, __version__
21
+ from aa_bulletin_board.app_settings import debug_enabled
22
22
  from aa_bulletin_board.constants import PACKAGE_NAME
23
23
  from aa_bulletin_board.helper.static_files import calculate_integrity_hash
24
24
 
@@ -56,7 +56,7 @@ def aa_bulletin_board_static(
56
56
  # Integrity hash calculation only for non-debug mode
57
57
  sri_string = (
58
58
  f' integrity="{calculate_integrity_hash(relative_file_path)}" crossorigin="anonymous"'
59
- if not settings.DEBUG
59
+ if not debug_enabled()
60
60
  else ""
61
61
  )
62
62
 
@@ -0,0 +1,37 @@
1
+ """
2
+ Test the settings
3
+ """
4
+
5
+ # Django
6
+ from django.test import TestCase, override_settings
7
+
8
+ # AA Bulletin Board
9
+ from aa_bulletin_board.app_settings import debug_enabled
10
+
11
+
12
+ class TestSettings(TestCase):
13
+ """
14
+ Test the settings
15
+ """
16
+
17
+ @override_settings(DEBUG=True)
18
+ def test_debug_enabled_with_debug_true(self) -> None:
19
+ """
20
+ Test debug_enabled with DEBUG = True
21
+
22
+ :return:
23
+ :rtype:
24
+ """
25
+
26
+ self.assertTrue(debug_enabled())
27
+
28
+ @override_settings(DEBUG=False)
29
+ def test_debug_enabled_with_debug_false(self) -> None:
30
+ """
31
+ Test debug_enabled with DEBUG = False
32
+
33
+ :return:
34
+ :rtype:
35
+ """
36
+
37
+ self.assertFalse(debug_enabled())
@@ -8,6 +8,7 @@ from django.test import TestCase, override_settings
8
8
 
9
9
  # AA Bulletin Board
10
10
  from aa_bulletin_board import __version__
11
+ from aa_bulletin_board.constants import PACKAGE_NAME
11
12
  from aa_bulletin_board.helper.static_files import calculate_integrity_hash
12
13
 
13
14
 
@@ -36,11 +37,11 @@ class TestVersionedStatic(TestCase):
36
37
 
37
38
  rendered_template = template_to_render.render(context=context)
38
39
 
39
- expected_static_css_src = f'/static/aa_bulletin_board/css/aa-bulletin-board.min.css?v={context["version"]}'
40
+ expected_static_css_src = f'/static/{PACKAGE_NAME}/css/aa-bulletin-board.min.css?v={context["version"]}'
40
41
  expected_static_css_src_integrity = calculate_integrity_hash(
41
42
  "css/aa-bulletin-board.min.css"
42
43
  )
43
- expected_static_js_src = f'/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js?v={context["version"]}'
44
+ expected_static_js_src = f'/static/{PACKAGE_NAME}/javascript/aa-bulletin-board-oembed.min.js?v={context["version"]}'
44
45
  expected_static_js_src_integrity = calculate_integrity_hash(
45
46
  "javascript/aa-bulletin-board-oembed.min.js"
46
47
  )
@@ -73,7 +74,7 @@ class TestVersionedStatic(TestCase):
73
74
 
74
75
  rendered_template = template_to_render.render(context=context)
75
76
 
76
- expected_static_css_src = f'/static/aa_bulletin_board/css/aa-bulletin-board.min.css?v={context["version"]}'
77
+ expected_static_css_src = f'/static/{PACKAGE_NAME}/css/aa-bulletin-board.min.css?v={context["version"]}'
77
78
 
78
79
  self.assertIn(member=expected_static_css_src, container=rendered_template)
79
80
  self.assertNotIn(member="integrity=", container=rendered_template)