Skip to content

Commit

Permalink
Use Django 2.0 import for reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Jan 24, 2018
1 parent 5f1dcfc commit d576b3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ You may need to do this if you use a custom user model and upgrade Django.

## Change Log

### 3.0.2

* Use Django 2.0 `reverse` import

### 3.0.1

* Change `is_authenticated` to property in models.py
Expand Down
7 changes: 1 addition & 6 deletions pinax/referrals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible

from .conf import settings
from .signals import user_linked_to_response

try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse


AUTH_USER_MODEL = getattr(settings, "AUTH_USER_MODEL", "auth.User")


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

VERSION = "3.0.1"
VERSION = "3.0.2"
LONG_DESCRIPTION = """
.. image:: http://pinaxproject.com/pinax-design/patches/pinax-referrals.svg
:target: https://pypi.python.org/pypi/pinax-referrals/
Expand Down

0 comments on commit d576b3b

Please sign in to comment.