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.
19 lines
437 B
19 lines
437 B
8 years ago
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
|
||
|
from django.test import TestCase
|
||
|
from django.utils import translation
|
||
|
|
||
|
from main.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')
|
||
|
|