Re: How to validate xl data

2022-02-25 Thread Ryan Nowakowski
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

Re: How to validate xl data

2022-02-14 Thread Sebastian Jung
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

Re: How to validate xl data

2022-02-14 Thread Sujata Aghor
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

How to validate xl data

2022-02-13 Thread Prashanth Patelc
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