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
t, when i search 'k', i get PageNotFound error
On Wednesday, March 25, 2020 at 7:00:00 AM UTC+4:30, Motaz Hejaze wrote:
>
> 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 ManyToMan
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 agents(models.Model):
agent_type = models.ForeignKey(types, on_delete=models.SET_NULL,
blank=
3 matches
Mail list logo