This is a fork of DjangoBB customized for Scratch 2.0. DjangoBB is a quick and simple forum which uses the Django Framework (written in Python language). Abbreviation DjangoBB stands for Django Bulletin Board. DjangoBB is distributed under the BSD license.
This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
JensDiemer 48ed192424 * Bugfix for double results in "show own posts" * Don't put user_id in GET -> use request.user * remove {% if results %} with {% for %}...{% empty %} * Refactor search()
Fixed topic search results which returned nothing.
Return a list instead of a generator in TopicFromPostResult.__getitem__() so that the pagination can work correctly.
from: https://bitbucket.org/hsoft/djangobb/changeset/1b2f31c54c516c699a7b11a1d43b170742157df5

use the slow, but correct solution for display the result as topics

used fast solution with a work-a-round for double topics

respect sort order

count only one time

better solution, but slow with woosh and many hits

change info

make it DRY

remove debug imports

remove not needed tuple()

* add "show your topics/posts" search
* add link to switch between topics/posts search
* merge {% block controls %}
* make search_posts.html useable with queryset and SearchQuerySet

Add topic <-> post switch links to other type of search, too.

not really in GET needed.

* Use PostSearchForm() in normal search
* add switch links to normal search, too.

better docstring

better text?
2012-08-08 11:00:28 +03:00
.tx update translations from Transifex 2012-06-07 12:27:24 +03:00
djangobb_forum * Bugfix for double results in "show own posts" * Don't put user_id in GET -> use request.user * remove {% if results %} with {% for %}...{% empty %} * Refactor search() 2012-08-08 11:00:28 +03:00
extras update dajngo-messages to 0.5pre with django 1.4 support 2012-05-04 12:30:05 +03:00
.hgignore added setup.py 2011-08-17 17:24:21 +03:00
.hgsub change url in .hgsub 2011-08-17 15:26:11 +03:00
.hgsubstate add activate.html to basic_project 2012-08-01 11:02:42 +03:00
LICENSE fix quotes in license 2009-11-20 17:16:25 +02:00
MANIFEST.in added MANIFEST.in file; now all data files included to package 2011-12-06 15:22:32 +02:00
setup.py update dajngo-messages to 0.5pre with django 1.4 support 2012-05-04 12:30:05 +03:00