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.
- {django_ormcache-1.3/django_ormcache.egg-info → django_ormcache-1.3.2}/PKG-INFO +1 -1
- {django_ormcache-1.3 → django_ormcache-1.3.2/django_ormcache.egg-info}/PKG-INFO +1 -1
- {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/SOURCES.txt +4 -1
- django_ormcache-1.3.2/django_ormcache.egg-info/top_level.txt +2 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/setup.py +2 -2
- django_ormcache-1.3.2/tests/testapp/__init__.py +0 -0
- django_ormcache-1.3.2/tests/testapp/managers.py +9 -0
- django_ormcache-1.3.2/tests/testapp/models.py +45 -0
- django_ormcache-1.3/django_ormcache.egg-info/top_level.txt +0 -1
- {django_ormcache-1.3 → django_ormcache-1.3.2}/LICENSE +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/MANIFEST.in +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/README.md +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/dependency_links.txt +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/django_ormcache.egg-info/requires.txt +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/__init__.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/decorators.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/managers.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/models.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/queryset.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/signals.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/ormcache/utils.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/pyproject.toml +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/setup.cfg +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_decorators.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_managers.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_queryset.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_signals.py +0 -0
- {django_ormcache-1.3 → django_ormcache-1.3.2}/tests/test_utils.py +0 -0
|
@@ -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(
|
|
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,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"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|