On Mon, Feb 14, 2022 at 12:04:13PM +0530, Prashanth Patelc wrote:
> i am working on xl sheets , when im uploading the xl sheet it is storing
> into the models but i need before storing into the models validate the data
>
> eg:
> username : ,must be str not int
> reference id : ,must be int not str
Hello,
Validation is very easy in django. Here a tutorial
http://www.learningaboutelectronics.com/Articles/How-to-create-a-custom-field-validator-in-Django.php
Sujata Aghor schrieb am Di., 15. Feb. 2022, 06:24:
> Hi Prashant,
> If you are talking about server side validations, then you can do
Hi Prashant,
If you are talking about server side validations, then you can do that for
each row/ cell values before inserting data into db.
Regards!
On Mon, Feb 14, 2022 at 12:05 PM Prashanth Patelc
wrote:
> i am working on xl sheets , when im uploading the xl sheet it is storing
> into the mo
i am working on xl sheets , when im uploading the xl sheet it is storing
into the models but i need before storing into the models validate the data
eg:
username : ,must be str not int
reference id : ,must be int not str
email : ,contains @gmail.com , not strt not int
i need to validate like abov
4 matches
Mail list logo