Questions tagged [django-phone-field]

5 questions
2
votes
1 answer

django-graphql-jwt with django-phone-field Object of type PhoneNumber is not JSON serializable

I'm currently using the django-phone-field library in a project where I use graphene-django as well. Here's my custom User model, where I'm using the PhoneField. class User(AbstractBaseUser, PermissionsMixin): """ Custom User model to add…
1
vote
0 answers

django-phone-field and rest framework: not a valid number

I'd like to use django-phone-field together with rest-framework. I've configured a simple model: from phonenumber_field.modelfields import PhoneNumberField class UserProfile(models.Model): user = models.OneToOneField(CustomUser,…
1
vote
1 answer

How to change django-phonenumber-field error messages

I am using django-phonenumber-field. Everyone who uses this app probably knows that any prefix has the same example "Enter a valid phone number (e.g. +12125552368)." Enter a valid phone number (e.g. +12125552368). So, I don't like it and I wanted to…
ATISE
  • 34
  • 1
  • 8
0
votes
0 answers

country flag and country code not showing in django form and admin

I'm using django-phonenumber_field in my model, but when added a PhoneNumberField in my model, and add it to my forms.py file it does not show a country flag with their country code like this in template, how can i solve this problem? from…
0
votes
1 answer

Django Admin delete user exception - Django Phone number

I have a django project which was working fine. I got the requirement to include phone verification so i used twilio and used the django [phone number][1]. I did the verification part and everything is working fine until i noticed the following…