Django-hitcount

Latest version: v1.3.5

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.2.3

-------------

* added indexing to `Hit.ip` and `Hit.session` (maxg0) `63`_
* removed testing support for python 3.3

1.2.2

-------------

* added ``on_delete=models.CASCADE`` and test (will be required in version 2.0) `47`_
* removed ``b`` (bytes) flag from _initial_ migration `48`_
* removed testing support for python 3.2

1.2.1

-------------

* fixed system check error in Django 1.9 - `43`_

1.2

-----------

* added ``hitcount.models.HitCountMixin`` to provide a reverse lookup property to a model's ``HitCount``
* deprecated ``hitcount.views_update_hit_count()`` and moved the business logic into ``hitcount.views.HitCountMixin.hit_count()``
* deprecated ``hitcount.views.update_hit_count_ajax()`` and replaced with class-based view ``hitcount.views.HitCountJSONView``
* deprecated ``static/hitcount-jquery.js`` and replaced with ``static/jquery.postcsrf.js`` (a more generic way to handle the Ajax POST CSRF fun-party)
* updated Django and Python version testing/support (>=1.7 as of Oct 2015)
* updated example_project to use new views and jQuery plugin
* updated tests to rely on the example_project

1.1.1

-------------

* fixed ``session_key`` returning ``None`` - `40`_ (>=1.8.4)
* removed requirement for `SESSION_SAVE_EVERY_REQUEST`
* removed `patterns` for urls.py (>=1.9)
* updated management command, using ``BaseCommand`` instead of ``NoArgsCommand`` (>=1.9)
* added ``TEMPLATES`` to `conftest.py`

1.1.0

-------------

* added tests (lots of them)
* added documentation
* support for Django 1.4.x - 1.8.x
* support for Python 3.x
* created an example project
* squashed bugs
* released to pip
* more, I'm sure!

.. note:: if you are upgrading from version 0.2 (it's so old!) the ``HitCount.object_pk`` was changed from a ``CharField`` to a ``PositiveIntegerField``. You will have to manually fix this in your database after upgrading.

.. _108: https://github.com/thornomad/django-hitcount/issues/108
.. _98: https://github.com/thornomad/django-hitcount/pull/98
.. _90: https://github.com/thornomad/django-hitcount/issues/90
.. _80: https://github.com/thornomad/django-hitcount/issues/80
.. _86: https://github.com/thornomad/django-hitcount/issues/86
.. _64: https://github.com/thornomad/django-hitcount/issues/64
.. _67: https://github.com/thornomad/django-hitcount/pull/67
.. _63: https://github.com/thornomad/django-hitcount/issues/63
.. _40: https://github.com/thornomad/django-hitcount/issues/40
.. _43: https://github.com/thornomad/django-hitcount/issues/43
.. _47: https://github.com/thornomad/django-hitcount/issues/47
.. _48: https://github.com/thornomad/django-hitcount/pull/48
.. _66: https://github.com/thornomad/django-hitcount/pull/66

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.