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.
20 lines
599 B
20 lines
599 B
# -*- coding: utf-8 -*-
|
|
from django.core.management.base import BaseCommand
|
|
from meta.models import MetaSetting
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
a = MetaSetting.objects.filter(translations__h1__contains='«').count()
|
|
qs = MetaSetting.objects.language('ru').all()
|
|
for item in qs:
|
|
item.title = item.title.replace(u'«', u'').replace(u'»', u'')
|
|
item.description = item.title.replace(u'«', u'').replace(u'»', u'')
|
|
item.h1 = item.h1.replace(u'«', u'').replace(u'»', u'')
|
|
#item.save()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|