Skip to content

Commit

Permalink
Added missing max length to email and debug off
Browse files Browse the repository at this point in the history
  • Loading branch information
oathbound01 committed Apr 24, 2024
1 parent 37a7e7f commit 1ce8417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Healthcare/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SECRET_KEY = 'django-insecure-$mgowz!l-*26-w($a8gutmd)ww3-*k5l!xl#3*rx8=cf8n%6*0'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = ["127.0.0.1", "localhost", "[::1]"]

Expand Down
1 change: 1 addition & 0 deletions Management_User/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class HealthCareUser(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(
'indirizzo e-mail',
unique=True,
max_length=255,
error_messages={'unique': 'Questa e-mail è già in uso'}
)
luogo_nascita = models.CharField(
Expand Down

0 comments on commit 1ce8417

Please sign in to comment.