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 f45653f commit 975966fCopy full SHA for 975966f
b2b/models.py
@@ -152,7 +152,7 @@ def add_user_contracts(self, user):
152
153
return contracts_qs.count()
154
155
- def remove_user_contracts(self, user):
+ def remove_user_contracts(self, user): # noqa: ARG002
156
"""
157
Remove managed contracts from the given user.
158
@@ -161,10 +161,7 @@ def remove_user_contracts(self, user):
161
Returns:
162
- int: number of contracts removed
163
164
-
165
- return user.b2b_contracts.through.objects.filter(
166
- contractpage_id__in=self.contracts.all().values_list("id", flat=True)
167
- ).delete()
+ return 0
168
169
def __str__(self):
170
"""Return a reasonable representation of the org as a string."""
0 commit comments