Compare View

switch
from
...
to
 
Commits (4)
colab/search/forms.py
... ... @@ -47,7 +47,6 @@ class ColabSearchForm(SearchForm):
47 47 for key in self.fields.keys():
48 48 value = self.cleaned_data[key]
49 49 if value and key not in self.excluded_fields:
50   - print key, '-' + value
51 50 kwargs[key] = self.cleaned_data[key]
52 51  
53 52 sqs = sqs.filter(**kwargs)
... ...
colab/search/templates/message-preview.html
1 1 {% load i18n tz highlight search_preview_templates %}
2   -{% get_search_preview_templates result as template_target %}
  2 +{% get_dashboard_search_preview_templates result as template_target %}
3 3 {% include template_target %}
... ...
colab/search/templates/search/search.html
1 1 {% extends "base.html" %}
2   -{% load i18n highlight superarchives %}
  2 +{% load i18n tz highlight superarchives search_preview_templates %}
3 3 {% load static from staticfiles %}
4 4  
5 5 {% block title %}{% trans 'search'|title %}{% endblock %}
... ... @@ -70,7 +70,8 @@ We must use STATIC_URL because we have a language composing the URL
70 70 <div class="col-md-10 col-lg-10">
71 71 <ul class="list-unstyled">
72 72 {% for result in page.object_list %}
73   - {% include "message-preview.html" %}
  73 + {% get_search_preview_templates result as template_target %}
  74 + {% include template_target %}
74 75 {% empty %}
75 76 <li class="text-center">
76 77 {% trans "No results for your search." %}
... ...
setup.py
... ... @@ -42,7 +42,7 @@ EXCLUDE_FROM_PACKAGES = []
42 42  
43 43 setup(
44 44 name='colab',
45   - version='1.12.2',
  45 + version='1.12.3',
46 46 url='https://github.com/colab-community/colab',
47 47 author='Sergio Oliveira',
48 48 author_email='sergio@tracy.com.br',
... ...