Forgot to say, you need a way to clean up the Search model's table
from time to time using a cron job or similar or otherwise you may run
into problems. An expiry_date field on the Search model would be
necessary to decide which searches to delete. You have to realize,
though, that this
It can be achieved using a Search model, but only if you only need
search on a single model.
class YourModel(models.Model):
...
clsss Search(models.Model):
yourmodels = models.ManyToManyField(YourModel)
So the search form is POST not GET. After POST'ing, you do the
searching, then
Hi everyone,
I have a search results page and need to be able to go to a detail
page for any result. I would like to provide the user a way to return
to their search results and not clutter the querystring with search
parameters.
What's the best approach for this using Django? Should I stuff
3 matches
Mail list logo