Browse Source

allow hashed_email to be empty

master
Fr3deric 5 years ago
parent
commit
fced0ea350
  1. 2
      bam/models.py

2
bam/models.py

@ -5,7 +5,7 @@ from django.contrib.auth.hashers import make_password @@ -5,7 +5,7 @@ from django.contrib.auth.hashers import make_password
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
hashed_email = models.CharField(max_length=128)
hashed_email = models.CharField(max_length=128, blank=True)
def __str__(self):
return '%s' % (self.user.username)

Loading…
Cancel
Save