Collection of helpers for multilingual websites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
436 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from django.utils import translation
from app.test_app.models import Entry
translation.activate('de')
Entry.objects.create(title_de="Deutscher Titel", title_en="English Title", description_de="Ein kleiner kurzer Text.", description_en="A short text.")
from django.core.management import call_command
call_command('rebuild_index')