Skip to content

Commit ee17db9

Browse files
committed
black
1 parent 1dc9299 commit ee17db9

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

django_fast_count/managers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,7 @@ def maybe_trigger_precache(self):
325325

326326
try:
327327
# Check new and old env var names for synchronous mode
328-
force_sync_mode = os.environ.get(
329-
FORCE_SYNC_PRECACHE_ENV_VAR
330-
)
328+
force_sync_mode = os.environ.get(FORCE_SYNC_PRECACHE_ENV_VAR)
331329

332330
if force_sync_mode:
333331
print(

django_fast_count/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ class FastCount(models.Model):
77
Stores cached counts for specific model querysets.
88
"""
99

10+
id = models.BigAutoField(
11+
primary_key=True
12+
) # Explicit so project settings do not override
1013
content_type = models.ForeignKey(
1114
ContentType,
1215
on_delete=models.CASCADE,

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="django-fast-count",
13-
version="0.1.7",
13+
version="0.1.9",
1414
description="A fast Django .count() implementation for large tables.",
1515
long_description=README,
1616
long_description_content_type="text/markdown",
@@ -22,11 +22,6 @@
2222
install_requires=[
2323
"django>=3.2",
2424
],
25-
entry_points={
26-
"console_scripts": [
27-
"dir-assistant=dir_assistant.main:main",
28-
],
29-
},
3025
classifiers=[
3126
"Programming Language :: Python :: 3",
3227
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)