- Confirm support for python
3.11-dev
and django4.0
(#26). - Drop support for python
3.6
and django2.1
(#21)..
- Confirm support for python
3.10
(#19). - Add a setting for limiting hits per single browser session (#16).
- Respect the setting for limiting hits per IP before counting a hit (#18).
- Confirm support for python
3.10-dev
(#11). - Optimize query for saving of increased and decreased hits(#10).
- Prevent compiling of
regex
for IP detection on every import ofhitcount.utils
(#8)
- Fix saving of anonymous sessions(#4).
- Bring back project to life.
- Change in project structure
signals
delete_hit_count
fromhitcount.models
has been moved tohitcount.signals
.- The argument
save_hitcount
to the functiondelete_hit_count_handler
(this process the signaldelete_hit_count
) is nowkeyword-only
. The earlier design pattern was a case of boolean-trap.
- The argument
mixins
HitCountMixin
fromhitcount.models
has been renamed asHitCountModelMixin
and moved tohitcount.mixins
.HitCountMixin
fromhitcount.views
has been renamed asHitCountViewMixin
and moved tohitcount.mixins
.
models
BlackListIP
renamed toBlockedIP
.BlackListUserAgent
renamed toBlockedUserAgent
.- The
ip
field forHit
model has been made optional. This hopefully makes the project GDPR compliant. Please open an issue if still isn't. - To maintain backwards compatibility with
django-hitcount
, an additional setting :ref:`HITCOUNT_USE_IP<hitcount_use_ip>` has been added.
- To maintain backwards compatibility with
- The
views
hitcount.views.update_hit_count_ajax
that was to be removed indjango-hitcount
1.2
has been removed. Usehitcount.views.HitCountJSONView
instead.hitcount.views._update_hit_count
that was to be removed indjango-hitcount
1.2
has been removed. Usehitcount.mixins.HitCountViewMixin.hit_count
instead.
- removed additional dependency of
django-etc
. - added additional unit tests. Test coverage is now
100%
.