Releases: abhiabhi94/dj-hitcount
Releases · abhiabhi94/dj-hitcount
Feature Release
Feature Release
Bug fix
Project brough back to life
1.0.0
- 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 ofboolean-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
-
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%
.
-