Merge pull request #1309 from bookwyrm-social/gettext_fix

Use gettext_lazy not gettext
This commit is contained in:
Mouse Reeve 2021-08-17 16:08:30 -06:00 committed by GitHub
commit c2592fe7c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ from django.core.exceptions import PermissionDenied
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from django.views import View
from bookwyrm import models

View file

@ -9,7 +9,7 @@ from django.http import HttpResponseBadRequest, HttpResponseNotFound
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from django.views import View
from django.views.decorators.http import require_POST