How to make a phone number field mandatory like password.

19 views
Skip to first unread message

Sachin Tiwari

unread,
Sep 26, 2014, 11:19:52 AM9/26/14
to django...@googlegroups.com
Hi

I am learning django and I want to add a phone number field which would be mandatory when we use add user button in users section.

I  tried it with blank=False or null=False but it would not work for me.

I am also using django-phone-number field package.


Thanks

Kakar Nyori

unread,
Sep 26, 2014, 11:56:28 AM9/26/14
to django...@googlegroups.com
You can do it in the form itself.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0ba53eda-e569-4521-b83a-4c883ee962e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages