Fix constraint to active = True
This commit is contained in:
parent
424ceafbb8
commit
721472b416
2 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ class BillingAddress(models.Model):
|
|||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(fields=['owner'],
|
||||
condition=Q(primary=True),
|
||||
condition=Q(active=True),
|
||||
name='one_active_billing_address_per_user')
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue