Skip to content

Commit

Permalink
Merge pull request #9 from jatinderjit/version_update
Browse files Browse the repository at this point in the history
Update to version 0.2.0
  • Loading branch information
Amit Upadhyay authored Jun 12, 2017
2 parents bce5b45 + e764921 commit 00f2c04
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
django-encrypted-id
===================

**Note**: Version 0.2.0 is a breaking change from versions
`0.1.x <https://github.com/amitu/django-encrypted-id/tree/v0.1>`_.
If you've been using *ekey* in permalinks, then it is recommended for you to
not upgrade to 0.2.x.

----

Consider this example model:

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion encrypted_id/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from django.shortcuts import get_object_or_404 as go4


__version__ = "0.1.3"
__version__ = "0.2.0"
__license__ = "BSD"
__author__ = "Amit Upadhyay"
__email__ = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion tests/tapp/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.contrib import admin
# from django.contrib import admin

# Register your models here.
2 changes: 1 addition & 1 deletion tests/tapp/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.test import TestCase
# from django.test import TestCase

# Create your tests here.
2 changes: 1 addition & 1 deletion tests/test_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def test_decode():
with pytest.raises(EncryptedIDDecodeError):
decode("1", "") # binascii.Error
with pytest.raises(EncryptedIDDecodeError):
decode(encode(0, "")[:-1] + 'Z', "") # crc error
decode(encode(0, "")[:-1] + 'Z', "") # crc error

0 comments on commit 00f2c04

Please sign in to comment.