Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
specialunderwear committed Aug 21, 2023
2 parents 6fed9a2 + 79cecbc commit 951946e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2", "4.2"]
oscar-version: ["3.2"]
steps:
- name: Download src dir
Expand Down
2 changes: 1 addition & 1 deletion oscarapi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.contrib.sessions.middleware import SessionMiddleware
from django.core.exceptions import PermissionDenied
from django.http.response import HttpResponse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from oscar.core.loading import get_class

Expand Down
2 changes: 1 addition & 1 deletion oscarapi/serializers/basket.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
from decimal import Decimal

from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.contrib.auth import get_user_model
from rest_framework import serializers

Expand Down
2 changes: 1 addition & 1 deletion oscarapi/serializers/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from urllib.error import HTTPError
from django.conf import settings as django_settings
from django.db import IntegrityError
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.core.files import File
from django.utils.functional import cached_property
Expand Down
2 changes: 1 addition & 1 deletion oscarapi/serializers/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
from copy import deepcopy
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from rest_framework import serializers
from rest_framework.fields import empty
Expand Down
9 changes: 8 additions & 1 deletion oscarapi/signals.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import django
from django.dispatch import Signal

oscarapi_post_checkout = Signal(providing_args=["order", "user", "request", "response"])

oscarapi_post_checkout_args = ["order", "user", "request", "response"]

if django.VERSION >= (3, 0):
oscarapi_post_checkout = Signal()
else:
oscarapi_post_checkout = Signal(providing_args=oscarapi_post_checkout_args)
2 changes: 1 addition & 1 deletion oscarapi/utils/categories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from rest_framework.exceptions import NotFound

Expand Down
2 changes: 1 addition & 1 deletion oscarapi/views/basket.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=W0632
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from oscar.apps.basket import signals
from oscar.core.loading import get_model, get_class
Expand Down

0 comments on commit 951946e

Please sign in to comment.