parent
3a3aeb3d5a
commit
3a347e86d2
|
@ -7,11 +7,11 @@ from papiezator.models import Pope
|
|||
from django.utils import translation
|
||||
|
||||
def index(request, pope=None):
|
||||
|
||||
translation.deactivate()
|
||||
if pope:
|
||||
if pope == 'Benedictus_XVI':
|
||||
translation.activate('de')
|
||||
else:
|
||||
translation.activate('pl')
|
||||
|
||||
pope = Pope.objects.filter(name=pope.replace('_', ' ')).first()
|
||||
if pope:
|
||||
|
@ -19,6 +19,7 @@ def index(request, pope=None):
|
|||
|
||||
if not pope:
|
||||
pope = 0
|
||||
|
||||
c = {
|
||||
"absolute_url": request.build_absolute_uri(reverse("papiezator:conclave", args=[200, 300])),
|
||||
"absolute_url_exp": request.build_absolute_uri("width/height/"),
|
||||
|
|
Loading…
Reference in New Issue