Skip to content

Commit

Permalink
populate partners
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 3, 2024
1 parent c0423df commit 450a274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lacommunaute/forum/management/commands/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 450a274

Please sign in to comment.