diff --git a/lacommunaute/forum/management/commands/populate.py b/lacommunaute/forum/management/commands/populate.py index c245abc76..d1a06d515 100644 --- a/lacommunaute/forum/management/commands/populate.py +++ b/lacommunaute/forum/management/commands/populate.py @@ -6,6 +6,7 @@ from lacommunaute.event.factories import EventFactory from lacommunaute.forum.factories import CategoryForumFactory, ForumFactory from lacommunaute.forum_conversation.factories import AnonymousTopicFactory, PostFactory, TopicFactory +from lacommunaute.partner.factories import PartnerFactory from lacommunaute.users.factories import UserFactory @@ -37,6 +38,9 @@ def handle(self, *args, **options): EventFactory.create_batch(5) sys.stdout.write("events created\n") + PartnerFactory.create_batch(5, with_logo=True) + sys.stdout.write("partners created\n") + # refresh materialized view with connection.cursor() as cursor: cursor.execute("REFRESH MATERIALIZED VIEW search_commonindex")