Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated ugettext with gettext_lazy #68

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyas2/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from django import forms
from django.utils.translation import ugettext as _
from django.utils.translation import gettext_lazy as _
from pyas2lib import Organization as As2Organization
from pyas2lib import Partner as As2Partner
from pyas2lib.exceptions import AS2Exception
Expand Down
2 changes: 2 additions & 0 deletions pyas2/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from django.urls import path
from django.contrib.auth.decorators import login_required
from django.urls import include, path
abhishek-ram marked this conversation as resolved.
Show resolved Hide resolved

from pyas2 import views


urlpatterns = [
# path('pyas2/', include('pyas2.urls')),
path("as2receive/", views.ReceiveAs2Message.as_view(), name="as2-receive"),
# Add the url again without slash for backwards compatibility
path("as2receive", views.ReceiveAs2Message.as_view(), name="as2-receive"),
Expand Down