diff --git a/backend/api/settings.py b/backend/api/settings.py index deecec2..5dcddaa 100644 --- a/backend/api/settings.py +++ b/backend/api/settings.py @@ -46,7 +46,7 @@ 'rest_framework_simplejwt.token_blacklist', 'corsheaders', - 'phonenumber_field', + # 'phonenumber_field', # 'barcode_field' # 'django_rdkit', diff --git a/backend/locations/models.py b/backend/locations/models.py index c389907..34c1abe 100644 --- a/backend/locations/models.py +++ b/backend/locations/models.py @@ -1,5 +1,5 @@ from django.db import models -from phonenumber_field.modelfields import PhoneNumberField +# from phonenumber_field.modelfields import PhoneNumberField class Building(models.Model): @@ -37,7 +37,7 @@ class Meta: class PhoneNumber(models.Model): room = models.ForeignKey(Room, on_delete=models.PROTECT, related_name='phones') - number = PhoneNumberField(unique=True) + number = models.CharField(max_length=20, unique=True) # PhoneNumberField(unique=True) def __str__(self): return f"{self.room.__str__()}: {self.number}"