(self, *args, **kwargs)
| 163 | return self.memberships.filter(tenant_id=tenant_id).exists() |
| 164 | |
| 165 | def save(self, *args, **kwargs): |
| 166 | if self.email: |
| 167 | self.email = self.email.strip().lower() |
| 168 | super().save(*args, **kwargs) |
| 169 | |
| 170 | class Meta: |
| 171 | db_table = "users" |
no outgoing calls