taskapp/management/commands/seed_db.py
changeset 111 c272d4c601cd
parent 37 40651a873f44
child 114 38793914921b
equal deleted inserted replaced
110:3685c2333448 111:c272d4c601cd
    30         credits = 20
    30         credits = 20
    31         
    31         
    32         task = taskEvents.createTask(title,desc,created_by,credits)
    32         task = taskEvents.createTask(title,desc,created_by,credits)
    33         if task:
    33         if task:
    34             taskEvents.addMentor(task, defaultMentor)
    34             taskEvents.addMentor(task, defaultMentor)
    35             taskEvents.publishTask(task)
    35             if i%2==0:taskEvents.publishTask(task)
    36 
    36 
    37 class Command(NoArgsCommand):
    37 class Command(NoArgsCommand):
    38     
    38     
    39     def handle_noargs(self, **options):
    39     def handle_noargs(self, **options):
    40         """ Just copied the code from seed_db.py """
    40         """ Just copied the code from seed_db.py """