Skip to content

Commit

Permalink
Bump version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnaderi committed Sep 13, 2022
1 parent ce49b62 commit 800b798
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@ Count visits using cache for Django models.
Use `VisitCountMixin`. It adds a `visit_count` field to your model.

```python
from django_visit_count.models import VisitCountMixin
from django_visit_count.mixins import VisitCountMixin

class MyBlogPost(VisitCountMixin, models.Model):
...
```

Create and run migrations on your model.

```shell
$ python manage.py makemigrations my_blog_app
$ python manage.py migrate my_blog_app
```

Count visits in your view like this:

```python
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name="django-visit-count",
version="1.0.0",
version="1.1.0",
description="Count visits using cache for Django models",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 800b798

Please sign in to comment.