DT
то валидацию не пройдет
Size: a a a
DT
DT
MK
DT
DT
MK
DT
DT
DT
DT
DT
@deconstructible
class UrlWithoutSheme(BaseValidator):
def clean(self, x):
return x.replace('http://', '')
url = models.CharField(
validators=[
UrlWithoutSheme(),
]
)
DT
MK
@deconstructible
class UrlWithoutSheme(BaseValidator):
def clean(self, x):
return x.replace('http://', '')
url = models.CharField(
validators=[
UrlWithoutSheme(),
]
)
TM
DT
не, эт из реального кода взял
А
А
I
MB
MK