Skip to content

Commit

Permalink
Fix Django warnings (#5)
Browse files Browse the repository at this point in the history
* re_path instead of url

* Update package version
  • Loading branch information
bertini36 authored May 11, 2021
1 parent 05d662e commit c2159b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatrans/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0.14'
__version__ = '1.0.15'
__copyright__ = 'Copyright (c) 2017, skioo SA'
__licence__ = 'MIT'
__URL__ = 'https://github.com/skioo/django-datatrans-gateway'
7 changes: 3 additions & 4 deletions datatrans/admin.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from django.conf.urls import url
from django.contrib import admin
from django.forms import CharField, TextInput, forms
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.urls import re_path, reverse
from django.utils.html import format_html
from djmoney.forms import MoneyField
from moneyed.localization import format_money
Expand Down Expand Up @@ -71,7 +70,7 @@ class AliasRegistrationAdmin(admin.ModelAdmin):
def get_urls(self):
urls = super().get_urls()
my_urls = [
url(
re_path(
r'^(?P<alias_registration_id>[0-9a-f-]+)/pay_with_alias/$',
self.admin_site.admin_view(pay_with_alias_form),
name='datatrans_alias_pay',
Expand Down Expand Up @@ -144,7 +143,7 @@ def get_search_results(self, request, queryset, search_term):
def get_urls(self):
urls = super().get_urls()
my_urls = [
url(
re_path(
r'^(?P<payment_id>[0-9a-f-]+)/refund/$',
self.admin_site.admin_view(refund_payment_form),
name='datatrans_payment_refund',
Expand Down

0 comments on commit c2159b0

Please sign in to comment.