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
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=
queryset.filter(title__icontains=query) is not enough?
On Wednesday, January 27, 2016 at 12:46:21 AM UTC+3, Xristos Xristoou wrote:
>
> hello,
>
>
> i want to an easy way to create search page on my site to searching only
> the titles.
> who is the better and easy way for
The easiest way i have used is this
http://toastdriven.com/blog/2008/nov/09/quick-dirty-search-django/
On Tuesday, January 26, 2016 at 11:46:21 PM UTC+2, Xristos Xristoou wrote:
>
> hello,
>
>
> i want to an easy way to create search page on my site to searching only
> th
On Tue, Jan 26, 2016 at 1:46 PM, Xristos Xristoou wrote:
> hello,
>
>
> i want to an easy way to create search page on my site to searching only
> the titles.
> who is the better and easy way for to doa that ?
> mayde some tools to install ?
> any idea ?
>
hello,
i want to an easy way to create search page on my site to searching only
the titles.
who is the better and easy way for to doa that ?
mayde some tools to install ?
any idea ?
--
You received this message because you are subscribed to the Google Groups
"Django users"
Hi,
You'll need to use javascript for that.
Collin
On Monday, March 2, 2015 at 2:27:35 AM UTC-5, Sabeen Sha wrote:
>
> which is the best way to implement the following::
> i will be having a text box and a Add button
>
> Along with a table below it containing headers class
> AssesmentBuildingD
which is the best way to implement the following::
i will be having a text box and a Add button
Along with a table below it containing headers class
AssesmentBuildingDetails(models.Model):
numbuildingid1 = models.CharField(max_length=14,unique=True)
numbuildingid2 = models.CharField(max
hello,
I am trying to migrate my function based views to class based ones. I
have a search page with a form (which is represented by MySearchForm
class). The form's action URL is set to the current page (). When the form is submitted the search
results are shown in the page below the for
I'm using django and I have a search page that uses pagination. All
works well, but if I change the search term the first page is fine,
but if I go to the 2nd page I see results from the previous search. I
must manually reload the page to see the 2nd page for the new search
term. Is
13 matches
Mail list logo