prune_captcha 1.6.0__tar.gz → 1.8.0__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 (29) hide show
  1. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/PKG-INFO +4 -2
  2. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/README.md +3 -1
  3. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/apps.py +1 -1
  4. prune_captcha-1.8.0/captcha_prune/migrations/0003_captcha_created_at_captcha_updated_at.py +25 -0
  5. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/utils.py +1 -1
  6. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/prune_captcha.egg-info/PKG-INFO +4 -2
  7. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/prune_captcha.egg-info/SOURCES.txt +1 -0
  8. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/pyproject.toml +1 -1
  9. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/__init__.py +0 -0
  10. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/asgi.py +0 -0
  11. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/context_processors.py +0 -0
  12. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/migrations/0001_initial.py +0 -0
  13. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/migrations/0002_remove_captcha_created_at_remove_captcha_pos_x_and_more.py +0 -0
  14. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/migrations/__init__.py +0 -0
  15. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/models.py +0 -0
  16. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/payloads.py +0 -0
  17. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/settings.py +0 -0
  18. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/urls.py +0 -0
  19. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/views.py +0 -0
  20. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/captcha_prune/wsgi.py +0 -0
  21. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/commons/base_model.py +0 -0
  22. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/commons/decorators.py +0 -0
  23. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/prune_captcha.egg-info/dependency_links.txt +0 -0
  24. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/prune_captcha.egg-info/requires.txt +0 -0
  25. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/prune_captcha.egg-info/top_level.txt +0 -0
  26. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/setup.cfg +0 -0
  27. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/tests/__init__.py +0 -0
  28. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/tests/captcha_prune/__init__.py +0 -0
  29. {prune_captcha-1.6.0 → prune_captcha-1.8.0}/tests/captcha_prune/test_views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prune_captcha
3
- Version: 1.6.0
3
+ Version: 1.8.0
4
4
  Summary: A tool to protect formulaire from spam.
5
5
  Author-email: Arnout <bastien@prune.sh>
6
6
  Project-URL: Made_by, https://prune.sh/
@@ -79,7 +79,7 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
79
79
  ```
80
80
 
81
81
  ```
82
- {% include "captcha_prune/components/captcha.html" %}
82
+ {% include "captcha_prune/captcha.html" %}
83
83
  ```
84
84
 
85
85
  - POST request (form submission)
@@ -136,6 +136,8 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
136
136
 
137
137
  | Version | Date | Notes |
138
138
  | ------- | ---------- | ---------------------------------- |
139
+ | 1.8.0 | 2025-05-20 | added migrations |
140
+ | 1.7.0 | 2025-05-20 | PUZZLE_IMAGE_STATIC_PATH ... |
139
141
  | 1.6.0 | 2025-05-20 | added templates |
140
142
  | 1.5.0 | 2025-05-20 | app config fixed, components ... |
141
143
  | 1.4.0 | 2025-05-20 | added BaseModel in Captcha, ... |
@@ -61,7 +61,7 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
61
61
  ```
62
62
 
63
63
  ```
64
- {% include "captcha_prune/components/captcha.html" %}
64
+ {% include "captcha_prune/captcha.html" %}
65
65
  ```
66
66
 
67
67
  - POST request (form submission)
@@ -118,6 +118,8 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
118
118
 
119
119
  | Version | Date | Notes |
120
120
  | ------- | ---------- | ---------------------------------- |
121
+ | 1.8.0 | 2025-05-20 | added migrations |
122
+ | 1.7.0 | 2025-05-20 | PUZZLE_IMAGE_STATIC_PATH ... |
121
123
  | 1.6.0 | 2025-05-20 | added templates |
122
124
  | 1.5.0 | 2025-05-20 | app config fixed, components ... |
123
125
  | 1.4.0 | 2025-05-20 | added BaseModel in Captcha, ... |
@@ -9,5 +9,5 @@ class DjangoPuzzleConfig(AppConfig):
9
9
  def ready(self):
10
10
  if not hasattr(settings, "PUZZLE_IMAGE_STATIC_PATH"):
11
11
  raise ImproperlyConfigured(
12
- "django-puzzle: vous devez définir PUZZLE_IMAGE_STATIC_PATH dans settings.py"
12
+ "captcha_prune: vous devez définir PUZZLE_IMAGE_STATIC_PATH dans settings.py"
13
13
  )
@@ -0,0 +1,25 @@
1
+ # Generated by Django 5.2 on 2025-05-20 09:12
2
+
3
+ import django.utils.timezone
4
+ from django.db import migrations, models
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ('captcha_prune', '0002_remove_captcha_created_at_remove_captcha_pos_x_and_more'),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AddField(
15
+ model_name='captcha',
16
+ name='created_at',
17
+ field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
18
+ preserve_default=False,
19
+ ),
20
+ migrations.AddField(
21
+ model_name='captcha',
22
+ name='updated_at',
23
+ field=models.DateTimeField(auto_now=True),
24
+ ),
25
+ ]
@@ -34,7 +34,7 @@ def create_and_get_puzzle(request: HttpRequest) -> HttpResponse | dict:
34
34
  "pos_y_solution": response["pos_y_solution"],
35
35
  "piece_pos_x": response["piece_pos_x"],
36
36
  "piece_pos_y": response["piece_pos_y"],
37
- "image": selected_image,
37
+ "image": f"{settings.PUZZLE_IMAGE_STATIC_PATH}{selected_image}",
38
38
  }
39
39
 
40
40
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prune_captcha
3
- Version: 1.6.0
3
+ Version: 1.8.0
4
4
  Summary: A tool to protect formulaire from spam.
5
5
  Author-email: Arnout <bastien@prune.sh>
6
6
  Project-URL: Made_by, https://prune.sh/
@@ -79,7 +79,7 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
79
79
  ```
80
80
 
81
81
  ```
82
- {% include "captcha_prune/components/captcha.html" %}
82
+ {% include "captcha_prune/captcha.html" %}
83
83
  ```
84
84
 
85
85
  - POST request (form submission)
@@ -136,6 +136,8 @@ PUZZLE_IMAGE_STATIC_PATH = "website/images/"
136
136
 
137
137
  | Version | Date | Notes |
138
138
  | ------- | ---------- | ---------------------------------- |
139
+ | 1.8.0 | 2025-05-20 | added migrations |
140
+ | 1.7.0 | 2025-05-20 | PUZZLE_IMAGE_STATIC_PATH ... |
139
141
  | 1.6.0 | 2025-05-20 | added templates |
140
142
  | 1.5.0 | 2025-05-20 | app config fixed, components ... |
141
143
  | 1.4.0 | 2025-05-20 | added BaseModel in Captcha, ... |
@@ -13,6 +13,7 @@ captcha_prune/views.py
13
13
  captcha_prune/wsgi.py
14
14
  captcha_prune/migrations/0001_initial.py
15
15
  captcha_prune/migrations/0002_remove_captcha_created_at_remove_captcha_pos_x_and_more.py
16
+ captcha_prune/migrations/0003_captcha_created_at_captcha_updated_at.py
16
17
  captcha_prune/migrations/__init__.py
17
18
  commons/base_model.py
18
19
  commons/decorators.py
@@ -20,7 +20,7 @@ classifiers = [
20
20
  keywords = ["captcha", "django", "code-quality"]
21
21
  urls = {Made_by = "https://prune.sh/"}
22
22
  name = "prune_captcha"
23
- version = "1.6.0"
23
+ version = "1.8.0"
24
24
  description = "A tool to protect formulaire from spam."
25
25
  readme = "README.md"
26
26
  dependencies = [
File without changes