From 46107b7539211adbe71ab25d319b5c1f744fe4c4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 21 Feb 2020 15:59:46 +0000 Subject: Clean up and fixed failing test after factory change --- ctrack/organisations/management/commands/populate_db.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ctrack/organisations/management/commands/populate_db.py') diff --git a/ctrack/organisations/management/commands/populate_db.py b/ctrack/organisations/management/commands/populate_db.py index 1613cde..4477b63 100644 --- a/ctrack/organisations/management/commands/populate_db.py +++ b/ctrack/organisations/management/commands/populate_db.py @@ -40,10 +40,6 @@ class Command(BaseCommand): submodes = [sb1, sb2, sb3, sb4, sb5, sb6, sb7] - # TODO: Create 40 odd organisations here, get their ids and pass them into PersonFactory.create_batch() - # below. Then we need to write a post_generation hook in PersonFactory which ensures that the person - # is only added to these Organisations and no further Organisation objects are created. - # we need a User object to completed the updated_by fields in Organisation and Person user = ( UserFactory.create() -- cgit v1.2.3