Skip to content

Commit

Permalink
use urljoin from standard Python
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 4, 2020
1 parent 02c5ab1 commit 82151c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion shop/models/defaults/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

import binascii
from os import urandom
from urllib.parse import urljoin

from django.db import models
from django.utils import timezone
from django.utils.six.moves.urllib.parse import urljoin
from django.utils.translation import ugettext_lazy as _, pgettext_lazy
from shop.models import order

Expand Down
4 changes: 3 additions & 1 deletion shop/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

from decimal import Decimal
import logging
from urllib.parse import urljoin
from six import with_metaclass

from django.core import checks
from django.core.exceptions import ImproperlyConfigured
from django.db import models, transaction
Expand All @@ -12,7 +14,7 @@
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _, pgettext_lazy, get_language_from_request
from django.utils.six.moves.urllib.parse import urljoin

from django_fsm import FSMField, transition
from ipware.ip import get_ip
from cms.models import Page
Expand Down
3 changes: 2 additions & 1 deletion shop/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from distutils.version import LooseVersion
from functools import reduce
import operator
from urllib.parse import urljoin

from cms import __version__ as CMS_VERSION

from django.apps import apps
Expand All @@ -15,7 +17,6 @@
from django.utils import six
from django.utils import timezone
from django.utils.encoding import force_text
from django.utils.six.moves.urllib.parse import urljoin
from django.utils.translation import ugettext_lazy as _

try:
Expand Down

0 comments on commit 82151c0

Please sign in to comment.