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
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
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
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
4 matches
Mail list logo