enforce unique email address and drop platform fee to 5%

pull/3/head
lalanza808 5 years ago
parent 13dce073b3
commit e68125ff3b

@ -13,3 +13,7 @@ class UserShippingAddress(models.Model):
def __str__(self):
return self.user.username
# Enforce unique email addresses
User._meta.get_field('email')._unique = True

@ -25,7 +25,8 @@ SECRET_KEY = os.environ['SECRET_KEY']
DEBUG = os.environ.get('DEBUG', False)
ALLOWED_HOSTS = str(os.environ['ALLOWED_HOSTS']).split(',')
ESCROW_PERIOD_DAYS = os.environ.get('ESCROW_PERIOD_DAYS', 30)
PLATFORM_FEE_PERCENT = os.environ.get('PLATFORM_FEE_PERCENT', 6)
PLATFORM_FEE_PERCENT = os.environ.get('PLATFORM_FEE_PERCENT', 5)
# Application definition