feat(model): added NepaliPhoneNumber Field
This commit is contained in:
5 files changed
+304
No files matched your search
@@ -0,0 +1,9 @@
|
||||
from django import forms
|
||||
|
||||
from django_nepkit.validators import validate_nepali_phone_number
|
||||
|
||||
|
||||
class NepaliPhoneNumberField(forms.CharField):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.validators.append(validate_nepali_phone_number)
|
||||
Reference in new issue
Block a user