Other needed librairies are listed below.
+telemeta
+django-markup-mixin
+django-pagination
+django-notes
+django-extensions
+postman
+django-timezones
+xlwt
+xlrd
+
Install the system dependencies
--------------------------------
class Command(BaseCommand):
help = "Import courses from a txt file (see an example in example/data/"
- args = "path"
+ args = "organization path"
admin_email = 'webmaster@parisson.com'
def handle(self, *args, **options):
code = CharField(_('code'), max_length=255)
name = CharField(_('name'), max_length=255, blank=True)
- category = ForeignKey('Category', related_name='course', verbose_name=_('category'))
+ category = ForeignKey('Category', related_name='course', verbose_name=_('category'),
+ blank=True, null=True)
courses = ManyToManyField('Course', related_name="training", verbose_name=_('courses'),
blank=True, null=True)
synthesis_note = BooleanField(_('synthesis note'))