fix edge case for i18n

This commit is contained in:
Your Name 2024-06-16 15:37:54 -04:00 committed by Henri Dickson
parent 56aa6aa0b9
commit 926737272d
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>
<div>{% include '_people.html' with people=item.genre role='genre' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='production area' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='region' max=10 %}</div>
<div>{% include '_people.html' with people=item.language role='language' max=5 %}</div>
<div>
{% if item.duration %}

View file

@ -25,7 +25,7 @@
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>
<div>{% include '_people.html' with people=item.genre role='genre' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='production area' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='region' max=10 %}</div>
<div>{% include '_people.html' with people=item.language role='language' max=5 %}</div>
<div>
{% if item.season_number %}

View file

@ -13,7 +13,7 @@
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>
<div>{% include '_people.html' with people=item.genre role='genre' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='production area' max=10 %}</div>
<div>{% include '_people.html' with people=item.area role='region' max=10 %}</div>
<div>{% include '_people.html' with people=item.language role='language' max=5 %}</div>
{% with item.all_seasons as seasons %}
{% if seasons %}

View file

@ -3,7 +3,7 @@ from django.contrib.auth.decorators import login_required
from django.core.exceptions import BadRequest, ObjectDoesNotExist, PermissionDenied
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from django.views.decorators.http import require_http_methods
from catalog.models import Item