Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Compatibility with Django 1.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Fabiani committed Mar 2, 2018
1 parent 1c043e5 commit 320e656
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions avatar/urls.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
try:
from django.conf.urls import url, patterns
except ImportError:
from django.conf.urls.defaults import url, patterns
from django.conf.urls import url

urlpatterns = patterns('avatar.views',
url('^add/$', 'add', name='avatar_add'),
url('^change/$', 'change', name='avatar_change'),
url('^delete/$', 'delete', name='avatar_delete'),
url('^render_primary/(?P<user>[\+\w]+)/(?P<size>[\d]+)/$', 'render_primary', name='avatar_render_primary'),
)
from . import views

urlpatterns = [ # 'avatar.views',
url('^add/$', views.add, name='avatar_add'),
url('^change/$', views.change, name='avatar_change'),
url('^delete/$', views.delete, name='avatar_delete'),
url('^render_primary/(?P<user>[\+\w]+)/(?P<size>[\d]+)/$', views.render_primary, name='avatar_render_primary'),
]
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 setup, find_packages

version = '2.1.4'
version = '2.1.7'

LONG_DESCRIPTION = """
Using geonode-avatar
Expand Down

0 comments on commit 320e656

Please sign in to comment.