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.
17 lines
575 B
17 lines
575 B
# -*- coding: utf-8 -*-
|
|
from conference.models import Conference
|
|
from country.models import Country
|
|
from django.core.management.base import NoArgsCommand
|
|
from django.db.models import Q, F
|
|
from django.utils.translation import activate
|
|
from exposition.models import Exposition
|
|
from service.models import LinkedService, Service
|
|
|
|
|
|
class Command(NoArgsCommand):
|
|
def handle_noargs(self, **options):
|
|
activate('ru')
|
|
services = list(LinkedService.objects.select_related('service').all())
|
|
|
|
for service in services:
|
|
service.set_events_services()
|
|
|