Additional column in Queryset with condition

2020-05-23 Thread Saurabh Adhikary
re not getting passed. Kindly , if you can help find a solution by : - handling the queryset in a better way - writing a query like Count as that is working fine for a similar column (although I know this works on Foreign key, but still if the logic is helped how to write Count type of function I

Re: Additional column in Queryset with condition

2020-05-23 Thread Saurabh Adhikary
derstanding and all the best, > > Adam > > On Sat, 23 May 2020 at 09:37, Saurabh Adhikary > wrote: > >> Hello , >> >> I need some advice / tips. >> >> I am in a fix. >> I have 2 databases & I want to join 2 tables of that. *As we know the

cannot use a string pattern on a bytes-like object

2019-05-31 Thread Saurabh Adhikary
Hello , I am upgrading my Django & Python from 1.8, 2.7 to 1.11,3.5. For a models in TimeField I'm getting error in dateparse.py Error -> cannot use a string pattern on a bytes-like object Tried with datetime.now(), still not working. Please help. Regards, Saurabh Adhikary --