Skip to content

Commit

Permalink
removed phonenumber
Browse files Browse the repository at this point in the history
  • Loading branch information
cheminfolab committed Apr 6, 2024
1 parent 899f00e commit 24e5e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
'rest_framework_simplejwt.token_blacklist',
'corsheaders',

'phonenumber_field',
# 'phonenumber_field',
# 'barcode_field'
# 'django_rdkit',

Expand Down
4 changes: 2 additions & 2 deletions backend/locations/models.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 24e5e6f

Please sign in to comment.