We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2138d commit ce9176dCopy full SHA for ce9176d
weblate/billing/models.py
@@ -718,7 +718,10 @@ def record_project_bill(
718
if isinstance(instance, Project):
719
users = User.objects.having_perm("project.edit", instance)
720
for billing in instance.billing_set.all():
721
+ existing_owners = set(billing.owners.values_list("id", flat=True))
722
for user in users:
723
+ if user.id in existing_owners:
724
+ continue
725
billing.owners.add(user)
726
billing.billinglog_set.create(
727
event=BillingEvent.ADMIN_ADDED_PROJECT, summary=user.username
0 commit comments