# HG changeset patch # User veltr # Date 1381242944 -7200 # Node ID 93500ff3b6972359058b8a77b9aea5d90156c922 # Parent 752062bdeb109308252e86b0d297af45af474e19# Parent 97fc6ffa502ebd186cb13911b41ca8b32f379eae Merge with 97fc6ffa502ebd186cb13911b41ca8b32f379eae diff -r 752062bdeb10 -r 93500ff3b697 .hgtags --- a/.hgtags Tue Oct 08 16:34:00 2013 +0200 +++ b/.hgtags Tue Oct 08 16:35:44 2013 +0200 @@ -33,3 +33,5 @@ 33a82766e9f964e05e3a75fb260e6f4e4aa92784 V00.13 e643f31ed0464510512ff33a70146fde4c093394 V00.14 500e8af5c1e568689ffa984480e463caaa43d4fe V00.15 +500e8af5c1e568689ffa984480e463caaa43d4fe V00.15 +e2043b49682d1833eab3281f63bb5f13acb05a99 V00.15 diff -r 752062bdeb10 -r 93500ff3b697 src/jocondelab/management/commands/populate_notice_years.py --- a/src/jocondelab/management/commands/populate_notice_years.py Tue Oct 08 16:34:00 2013 +0200 +++ b/src/jocondelab/management/commands/populate_notice_years.py Tue Oct 08 16:35:44 2013 +0200 @@ -1,17 +1,17 @@ # -*- coding: utf-8 -*- -from django.core.management.base import NoArgsCommand -from core.models import (Notice) +from django.core.management.base import BaseCommand +from core.models import Notice from core.utils import show_progress from jocondelab.models import NoticeYears from django.db import reset_queries, transaction from optparse import make_option import re -class Command(NoArgsCommand): +class Command(BaseCommand): help = "Extract Years from MILL field" - option_list = NoArgsCommand.option_list + ( + option_list = BaseCommand.option_list + ( make_option('-b', '--batch-size', dest= 'batch_size', type='int',