Skip to content

Commit

Permalink
Recreate menus on each Tenant save
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Dec 20, 2024
1 parent 01c5322 commit 9bd57f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tenants/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ def distinct_requests(request):
@receiver(post_save, sender=Tenant)
def generate_menus(sender, instance, created, **kwargs):
"""Generates a menu for new tenants"""
if created:
create_menus(instance)
create_menus(instance)

0 comments on commit 9bd57f3

Please sign in to comment.