Re: django search page not found error

2020-03-26 Thread omid jahadi
How can i handle this exception ... I have this error: "No agents found matching the query" On Thursday, March 26, 2020 at 12:08:14 AM UTC+4:30, Motaz Hejaze wrote: > > No problem , you can catch this exception in your views.py if you want .. > > On Wed, 25 Mar 2020, 12:46 pm omid jahadi, > wrot

Re: django search page not found error

2020-03-25 Thread Motaz Hejaze
No problem , you can catch this exception in your views.py if you want .. On Wed, 25 Mar 2020, 12:46 pm omid jahadi, wrote: > It doesn't work ... Actually, ManyToManyField is not null ... I get error > when i search a keyword that doesn't match with any user! ... For example, > first_name is 'Om

Re: django search page not found error

2020-03-25 Thread omid jahadi
It doesn't work ... Actually, ManyToManyField is not null ... I get error when i search a keyword that doesn't match with any user! ... For example, first_name is 'Omid', when i search 'o' or 'm', search works fine and return 'Omid', but, when i search 'k', i get PageNotFound error On Wednesday

Re: django search page not found error

2020-03-24 Thread Motaz Hejaze
Add null=True to manytomany field On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: > Hello everybody! I want to search in a ManyToManyField in the DetailView. > It works fine if a user with the same query exist, but if there isn't a > user, i get page not found error. > > models.py: > > class a