Skip to content

Commit

Permalink
Added Django 4 support, dropped Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-- committed Oct 9, 2024
1 parent 1ce8b54 commit f6ed679
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion django_giropay/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.0'
__version__ = '1.0.0'
9 changes: 1 addition & 8 deletions django_giropay/models.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
from __future__ import unicode_literals

import logging

from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _

from django.utils.translation import gettext_lazy as _


@python_2_unicode_compatible
class GiropayTransaction(models.Model):
created_at = models.DateTimeField(_("created_at"), auto_now_add=True)

Expand Down
2 changes: 1 addition & 1 deletion django_giropay/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import OrderedDict

from django.http import HttpResponse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View, RedirectView

Expand Down
4 changes: 1 addition & 3 deletions django_giropay/wrappers.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from __future__ import unicode_literals

import logging
from collections import OrderedDict

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from django_giropay import settings as django_giropay_settings
from django_giropay.constants import SHOPPING_CART_TYPE
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def get_package_data(package):
return {package: filepaths}

REQUIREMENTS = [
'Django>=1.11',
'six>=1.10.0',
'Django>=4.0',
]

version = get_version('django_giropay')
Expand Down

0 comments on commit f6ed679

Please sign in to comment.