Skip to content

Commit

Permalink
Added boolean field to determine if an address is default
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinthehole committed Jun 2, 2011
1 parent a656c7f commit f033f1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oscar/apps/address/abstract_models.py
Expand Up @@ -160,8 +160,9 @@ class AbstractUserAddress(AbstractShippingAddress):
"""
user = models.ForeignKey('auth.User', related_name='addresses')

# Customers can set which is their default billing address
default_for_billing = models.BooleanField(default=False)
# Customers can set defaults
is_default_for_shipping = models.BooleanField(default=False)
is_default_for_billing = models.BooleanField(default=False)

# We keep track of the number of times an address has been used
# as a shipping address so we can show the most popular ones
Expand Down

0 comments on commit f033f1f

Please sign in to comment.