1 # -*- coding: utf-8 -*-
3 from django.core.management.base import BaseCommand
5 from catalogue.models import Book
8 class Command(BaseCommand):
9 help = 'Exports a lesson in WL1 XML'
12 def handle(self, slug, *args, **options):
13 lesson = Book.objects.get(slug=slug)
14 print lesson.wl1_xml()