django-ormcache 1.3__tar.gz → 1.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 (28) hide show
  1. {django_ormcache-1.3/django_ormcache.egg-info → django_ormcache-1.3.2}/PKG-INFO +1 -1
  2. {django_ormcache-1.3 → django_ormcache-1.3.2/django_ormcache.egg-info}/PKG-INFO +1 -1
  3. {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/SOURCES.txt +4 -1
  4. django_ormcache-1.3.2/django_ormcache.egg-info/top_level.txt +2 -0
  5. {django_ormcache-1.3 → django_ormcache-1.3.2}/setup.py +2 -2
  6. django_ormcache-1.3.2/tests/testapp/__init__.py +0 -0
  7. django_ormcache-1.3.2/tests/testapp/managers.py +9 -0
  8. django_ormcache-1.3.2/tests/testapp/models.py +45 -0
  9. django_ormcache-1.3/django_ormcache.egg-info/top_level.txt +0 -1
  10. {django_ormcache-1.3 → django_ormcache-1.3.2}/LICENSE +0 -0
  11. {django_ormcache-1.3 → django_ormcache-1.3.2}/MANIFEST.in +0 -0
  12. {django_ormcache-1.3 → django_ormcache-1.3.2}/README.md +0 -0
  13. {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/dependency_links.txt +0 -0
  14. {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/requires.txt +0 -0
  15. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/__init__.py +0 -0
  16. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/decorators.py +0 -0
  17. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/managers.py +0 -0
  18. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/models.py +0 -0
  19. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/queryset.py +0 -0
  20. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/signals.py +0 -0
  21. {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/utils.py +0 -0
  22. {django_ormcache-1.3 → django_ormcache-1.3.2}/pyproject.toml +0 -0
  23. {django_ormcache-1.3 → django_ormcache-1.3.2}/setup.cfg +0 -0
  24. {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_decorators.py +0 -0
  25. {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_managers.py +0 -0
  26. {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_queryset.py +0 -0
  27. {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_signals.py +0 -0
  28. {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-ormcache
3
- Version: 1.3
3
+ Version: 1.3.2
4
4
  Summary: ORM cache for Django
5
5
  Home-page: https://github.com/educreations/django-ormcache
6
6
  Author: Corey Farwell
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-ormcache
3
- Version: 1.3
3
+ Version: 1.3.2
4
4
  Summary: ORM cache for Django
5
5
  Home-page: https://github.com/educreations/django-ormcache
6
6
  Author: Corey Farwell
@@ -20,4 +20,7 @@ tests/test_decorators.py
20
20
  tests/test_managers.py
21
21
  tests/test_queryset.py
22
22
  tests/test_signals.py
23
- tests/test_utils.py
23
+ tests/test_utils.py
24
+ tests/testapp/__init__.py
25
+ tests/testapp/managers.py
26
+ tests/testapp/models.py
@@ -0,0 +1,2 @@
1
+ ormcache
2
+ tests
@@ -5,7 +5,7 @@ readme_text = open("README.md", "r").read()
5
5
 
6
6
  setup(
7
7
  name="django-ormcache",
8
- version="1.3",
8
+ version="1.3.2",
9
9
  description="ORM cache for Django",
10
10
  license="MIT",
11
11
  keywords="cache django",
@@ -16,7 +16,7 @@ setup(
16
16
  url="https://github.com/educreations/django-ormcache",
17
17
  long_description=readme_text,
18
18
  long_description_content_type="text/markdown",
19
- packages=find_packages(where="ormcache"),
19
+ packages=find_packages(exclude=["tests"]),
20
20
  package_dir={"ormcache": "ormcache"},
21
21
  python_requires=">=3.7, <4",
22
22
  install_requires=["Django>=2.0,<5.0", "six"],
File without changes
@@ -0,0 +1,9 @@
1
+ import django
2
+ from django.db import models
3
+
4
+ from ormcache.managers import CachedManagerMixin
5
+
6
+
7
+ class DummyManager(CachedManagerMixin, models.Manager):
8
+ if django.VERSION < (1, 10):
9
+ use_for_related_fields = True
@@ -0,0 +1,45 @@
1
+ import django
2
+ from django.db import models
3
+
4
+ from tests.testapp.managers import DummyManager
5
+
6
+
7
+ class CachedDummyModel(models.Model):
8
+ cache_enabled = True
9
+
10
+ title = models.CharField(max_length=50)
11
+ summary = models.CharField(max_length=400)
12
+
13
+ related = models.ForeignKey(
14
+ "OtherCachedDummyModel", null=True, on_delete=models.SET_NULL
15
+ )
16
+
17
+ objects = DummyManager()
18
+
19
+ class Meta(object):
20
+ if django.VERSION >= (1, 10):
21
+ base_manager_name = "objects"
22
+ default_manager_name = "objects"
23
+
24
+
25
+ class OtherCachedDummyModel(models.Model):
26
+ cache_enabled = True
27
+
28
+ objects = DummyManager()
29
+
30
+ class Meta(object):
31
+ if django.VERSION >= (1, 10):
32
+ base_manager_name = "objects"
33
+ default_manager_name = "objects"
34
+
35
+
36
+ class UncachedDummyModel(models.Model):
37
+ title = models.CharField(max_length=50)
38
+ summary = models.CharField(max_length=400)
39
+
40
+ objects = DummyManager()
41
+
42
+ class Meta(object):
43
+ if django.VERSION >= (1, 10):
44
+ base_manager_name = "objects"
45
+ default_manager_name = "objects"
File without changes
File without changes
File without changes